home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 15 / BBS in a box XV-2.iso / Files II / Prog / U-Z / VideoToolbox 4.95.sit / VideoToolbox / Demos / TestGDVideo.c < prev    next >
MacBinary  |  1995-04-18  |  17.0 KB  |  [TEXT/MPCC]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Compact Compressed (Unix) (archive/compact) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, Tue Apr 18 23:06:04 1995, modified Tue Apr 18 23:06:04 1995, creator 'MPCC', type ASCII, 16467 bytes "TestGDVideo.c" , at 0x40d3 654 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[MPCC]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0d 54 65 73 74 47 44 | 56 69 64 65 6f 2e 63 00 |..TestGD|Video.c.|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 50 43 | 43 00 00 00 00 00 00 00 |.TEXTMPC|C.......|
|00000050| 00 00 00 00 00 40 53 00 | 00 02 8e ab ba 2e 9c ab |.....@S.|........|
|00000060| ba 2e 9c 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 21 8d 00 00 |........|....!...|
|00000080| 2f 2a 20 0d 54 65 73 74 | 47 44 56 69 64 65 6f 2e |/* .Test|GDVideo.|
|00000090| 63 20 62 79 20 44 65 6e | 69 73 20 47 2e 20 50 65 |c by Den|is G. Pe|
|000000a0| 6c 6c 69 0d 54 65 73 74 | 73 20 61 6c 6c 20 74 68 |lli.Test|s all th|
|000000b0| 65 20 64 6f 63 75 6d 65 | 6e 74 65 64 20 43 6f 6e |e docume|nted Con|
|000000c0| 74 72 6f 6c 20 61 6e 64 | 20 53 74 61 74 75 73 20 |trol and| Status |
|000000d0| 63 61 6c 6c 73 20 69 6d | 70 6c 65 6d 65 6e 74 65 |calls im|plemente|
|000000e0| 64 20 69 6e 20 47 44 56 | 69 64 65 6f 2e 63 0d 54 |d in GDV|ideo.c.T|
|000000f0| 68 65 20 63 61 6c 6c 73 | 20 61 72 65 20 64 6f 63 |he calls| are doc|
|00000100| 75 6d 65 6e 74 65 64 20 | 69 6e 20 44 65 73 69 67 |umented |in Desig|
|00000110| 6e 69 6e 67 20 43 61 72 | 64 73 20 61 6e 64 20 44 |ning Car|ds and D|
|00000120| 72 69 76 65 72 73 2c 20 | 33 72 64 20 45 64 69 74 |rivers, |3rd Edit|
|00000130| 69 6f 6e 2e 0d 0d 54 68 | 65 20 6d 61 69 6e 20 70 |ion...Th|e main p|
|00000140| 75 72 70 6f 73 65 20 6f | 66 20 74 68 69 73 20 70 |urpose o|f this p|
|00000150| 72 6f 67 72 61 6d 20 69 | 73 20 74 6f 20 66 69 6e |rogram i|s to fin|
|00000160| 64 20 62 75 67 73 20 69 | 6e 20 76 69 64 65 6f 20 |d bugs i|n video |
|00000170| 64 72 69 76 65 72 73 2e | 20 49 66 20 79 6f 75 20 |drivers.| If you |
|00000180| 64 6f 0d 66 69 6e 64 20 | 61 20 62 75 67 20 74 68 |do.find |a bug th|
|00000190| 61 74 20 69 73 6e 27 74 | 20 61 6c 72 65 61 64 79 |at isn't| already|
|000001a0| 20 6c 69 73 74 65 64 20 | 69 6e 20 74 68 65 20 74 | listed |in the t|
|000001b0| 61 62 6c 65 20 61 74 20 | 74 68 65 20 65 6e 64 20 |able at |the end |
|000001c0| 6f 66 20 d2 56 69 64 65 | 6f 20 73 79 6e 63 68 d3 |of .Vide|o synch.|
|000001d0| 0d 74 68 65 6e 20 70 6c | 65 61 73 65 20 73 65 6e |.then pl|ease sen|
|000001e0| 64 20 69 74 20 74 6f 20 | 64 65 6e 69 73 40 78 70 |d it to |denis@xp|
|000001f0| 2e 70 73 79 63 68 2e 6e | 79 75 2e 65 64 75 20 0d |.psych.n|yu.edu .|
|00000200| 0d 55 6e 66 6f 72 74 75 | 6e 61 74 65 6c 79 2c 20 |.Unfortu|nately, |
|00000210| 74 68 65 20 6d 6f 73 74 | 20 63 6f 6d 6d 6f 6e 20 |the most| common |
|00000220| 77 61 79 20 74 6f 20 64 | 69 73 63 6f 76 65 72 20 |way to d|iscover |
|00000230| 61 20 6e 65 77 20 62 75 | 67 20 69 73 20 66 6f 72 |a new bu|g is for|
|00000240| 20 74 68 69 73 20 70 72 | 6f 67 72 61 6d 20 74 6f | this pr|ogram to|
|00000250| 0d 63 72 61 73 68 2e 20 | 50 6c 65 61 73 65 20 72 |.crash. |Please r|
|00000260| 65 70 6f 72 74 20 63 72 | 61 73 68 65 73 20 74 6f |eport cr|ashes to|
|00000270| 20 64 65 6e 69 73 40 78 | 70 2e 70 73 79 63 68 2e | denis@x|p.psych.|
|00000280| 6e 79 75 2e 65 64 75 0d | 0d 42 55 47 53 3a 0d 0d |nyu.edu.|.BUGS:..|
|00000290| 48 49 53 54 4f 52 59 3a | 0d 38 2f 31 31 2f 38 39 |HISTORY:|.8/11/89|
|000002a0| 09 64 67 70 09 77 72 6f | 74 65 20 69 74 0d 33 2f |.dgp.wro|te it.3/|
|000002b0| 32 33 2f 39 30 09 64 67 | 70 09 69 6e 74 72 6f 64 |23/90.dg|p.introd|
|000002c0| 75 63 65 64 20 73 70 65 | 63 69 61 6c 20 63 61 73 |uced spe|cial cas|
|000002d0| 65 20 63 6f 6e 64 69 74 | 69 6f 6e 61 6c 73 20 74 |e condit|ionals t|
|000002e0| 6f 20 73 6b 69 70 20 74 | 65 73 74 73 20 6b 6e 6f |o skip t|ests kno|
|000002f0| 77 6e 20 74 6f 20 63 72 | 61 73 68 0d 09 09 09 70 |wn to cr|ash....p|
|00000300| 61 72 74 69 63 75 6c 61 | 72 20 64 72 69 76 65 72 |articula|r driver|
|00000310| 73 2e 0d 33 2f 32 33 2f | 39 30 09 64 67 70 09 6d |s..3/23/|90.dgp.m|
|00000320| 61 64 65 20 69 74 20 63 | 6f 6d 70 61 74 69 62 6c |ade it c|ompatibl|
|00000330| 65 20 77 69 74 68 20 4d | 50 57 20 43 2c 20 61 73 |e with M|PW C, as|
|00000340| 20 61 20 74 6f 6f 6c 2e | 0d 33 2f 32 34 2f 39 30 | a tool.|.3/24/90|
|00000350| 09 64 67 70 09 6d 61 64 | 65 20 73 6f 6d 65 20 6f |.dgp.mad|e some o|
|00000360| 66 20 74 68 65 20 70 72 | 69 6e 74 6f 75 74 73 20 |f the pr|intouts |
|00000370| 6c 65 73 73 20 63 72 79 | 70 74 69 63 2e 0d 33 2f |less cry|ptic..3/|
|00000380| 33 31 2f 39 30 09 64 67 | 70 09 69 6e 74 72 6f 64 |31/90.dg|p.introd|
|00000390| 75 63 65 64 20 52 65 73 | 74 6f 72 65 44 65 76 69 |uced Res|toreDevi|
|000003a0| 63 65 43 6c 75 74 20 61 | 66 74 65 72 20 53 65 74 |ceClut a|fter Set|
|000003b0| 4d 6f 64 65 20 63 61 6c | 6c 2e 0d 37 2f 31 32 2f |Mode cal|l..7/12/|
|000003c0| 39 30 09 64 67 70 09 74 | 69 64 69 65 64 20 75 70 |90.dgp.t|idied up|
|000003d0| 20 74 68 65 20 69 6e 69 | 74 69 61 6c 20 70 72 69 | the ini|tial pri|
|000003e0| 6e 74 66 0d 37 2f 31 39 | 2f 39 30 09 64 67 70 09 |ntf.7/19|/90.dgp.|
|000003f0| 52 65 6e 61 6d 65 64 20 | 56 69 64 65 6f 54 65 73 |Renamed |VideoTes|
|00000400| 74 2e 63 20 0d 09 09 09 | 4f 70 65 6e 20 26 20 63 |t.c ....|Open & c|
|00000410| 6c 6f 73 65 20 61 20 77 | 69 6e 64 6f 77 20 6f 6e |lose a w|indow on|
|00000420| 20 65 61 63 68 20 73 63 | 72 65 65 6e 20 61 6e 64 | each sc|reen and|
|00000430| 20 44 72 61 77 4d 65 6e | 75 42 61 72 28 29 0d 09 | DrawMen|uBar()..|
|00000440| 09 09 73 6f 20 74 68 61 | 74 20 51 75 69 63 6b 44 |..so tha|t QuickD|
|00000450| 72 61 77 20 77 69 6c 6c | 20 72 65 73 74 6f 72 65 |raw will| restore|
|00000460| 20 65 61 63 68 20 73 63 | 72 65 65 6e 2e 0d 37 2f | each sc|reen..7/|
|00000470| 32 38 2f 39 30 09 64 67 | 70 09 69 74 61 6c 69 63 |28/90.dg|p.italic|
|00000480| 69 7a 65 64 20 6e 61 6d | 65 20 6f 66 20 62 6f 6f |ized nam|e of boo|
|00000490| 6b 2e 0d 39 2f 39 2f 39 | 30 09 64 67 70 09 41 64 |k..9/9/9|0.dgp.Ad|
|000004a0| 64 65 64 20 71 75 69 74 | 20 62 79 20 43 6f 6d 6d |ded quit| by Comm|
|000004b0| 61 6e 64 2d 2e 20 66 6f | 72 20 67 72 61 63 65 66 |and-. fo|r gracef|
|000004c0| 75 6c 20 65 78 69 74 20 | 66 72 6f 6d 20 62 61 64 |ul exit |from bad|
|000004d0| 20 73 69 74 75 61 74 69 | 6f 6e 73 2e 0d 31 30 2f | situati|ons..10/|
|000004e0| 31 37 2f 39 30 20 64 67 | 70 20 52 65 6d 6f 76 65 |17/90 dg|p Remove|
|000004f0| 64 20 75 6e 75 73 65 64 | 20 76 61 72 69 61 62 6c |d unused| variabl|
|00000500| 65 73 2e 20 52 65 70 6c | 61 63 65 64 20 54 52 55 |es. Repl|aced TRU|
|00000510| 45 20 26 20 46 41 4c 53 | 45 20 62 79 20 31 20 26 |E & FALS|E by 1 &|
|00000520| 20 30 2e 0d 31 30 2f 32 | 30 2f 39 30 09 64 67 70 | 0..10/2|0/90.dgp|
|00000530| 09 41 70 70 6c 65 20 68 | 61 73 20 72 65 6e 61 6d |.Apple h|as renam|
|00000540| 65 64 20 74 68 65 20 63 | 6f 6e 74 72 6f 6c 20 61 |ed the c|ontrol a|
|00000550| 6e 64 20 73 74 61 74 75 | 73 20 63 61 6c 6c 73 2c |nd statu|s calls,|
|00000560| 20 73 6f 20 49 20 66 6f | 6c 6c 6f 77 65 64 20 73 | so I fo|llowed s|
|00000570| 75 69 74 3a 0d 09 09 09 | 09 47 44 47 65 74 50 61 |uit:....|.GDGetPa|
|00000580| 67 65 42 61 73 65 20 72 | 65 70 6c 61 63 65 73 20 |geBase r|eplaces |
|00000590| 47 44 47 65 74 42 61 73 | 65 41 64 64 72 0d 09 09 |GDGetBas|eAddr...|
|000005a0| 09 09 47 44 52 65 73 65 | 74 20 72 65 70 6c 61 63 |..GDRese|t replac|
|000005b0| 65 73 20 47 44 49 6e 69 | 74 0d 09 09 09 09 47 44 |es GDIni|t.....GD|
|000005c0| 47 72 61 79 50 61 67 65 | 20 72 65 70 6c 61 63 65 |GrayPage| replace|
|000005d0| 20 47 44 47 72 61 79 53 | 63 72 65 65 6e 0d 09 09 | GDGrayS|creen...|
|000005e0| 09 09 47 44 47 65 74 50 | 61 67 65 43 6e 74 20 72 |..GDGetP|ageCnt r|
|000005f0| 65 70 6c 61 63 65 73 20 | 47 44 47 65 74 50 61 67 |eplaces |GDGetPag|
|00000600| 65 73 0d 31 30 2f 32 32 | 2f 39 30 20 64 67 70 20 |es.10/22|/90 dgp |
|00000610| 50 72 69 6e 74 20 6f 75 | 74 20 6e 75 6d 62 65 72 |Print ou|t number|
|00000620| 20 6f 66 20 70 61 67 65 | 73 20 66 6f 72 20 61 6c | of page|s for al|
|00000630| 6c 20 6d 6f 64 65 73 2c | 20 6e 6f 74 20 6a 75 73 |l modes,| not jus|
|00000640| 74 20 63 75 72 72 65 6e | 74 20 6d 6f 64 65 2e 0d |t curren|t mode..|
|00000650| 09 09 20 64 67 70 20 52 | 65 73 74 6f 72 65 20 63 |.. dgp R|estore c|
|00000660| 6c 75 74 20 6d 61 6e 75 | 61 6c 6c 79 20 73 69 6e |lut manu|ally sin|
|00000670| 63 65 20 52 65 73 74 6f | 72 65 44 65 76 69 63 65 |ce Resto|reDevice|
|00000680| 43 6c 75 74 28 29 20 64 | 6f 65 73 6e 27 74 0d 09 |Clut() d|oesn't..|
|00000690| 09 20 09 77 6f 72 6b 20 | 6f 6e 20 4e 75 56 69 73 |. .work |on NuVis|
|000006a0| 74 61 2e 0d 31 30 2f 32 | 38 2f 39 30 20 64 67 70 |ta..10/2|8/90 dgp|
|000006b0| 20 4f 6e 6c 79 20 74 65 | 73 74 20 47 65 74 49 6e | Only te|st GetIn|
|000006c0| 74 65 72 72 75 70 74 20 | 26 20 53 65 74 49 6e 74 |terrupt |& SetInt|
|000006d0| 65 72 72 75 70 74 20 69 | 66 20 53 79 73 74 65 6d |errupt i|f System|
|000006e0| 20 69 73 20 36 2e 30 35 | 20 6f 72 20 68 69 67 68 | is 6.05| or high|
|000006f0| 65 72 2e 20 54 68 69 73 | 0d 09 09 09 61 76 6f 69 |er. This|....avoi|
|00000700| 64 73 20 53 65 74 49 6e | 74 65 72 72 75 70 74 28 |ds SetIn|terrupt(|
|00000710| 29 20 63 72 61 73 68 20 | 6f 6e 20 6f 6c 64 20 41 |) crash |on old A|
|00000720| 70 70 6c 65 20 54 46 42 | 20 76 69 64 65 6f 20 64 |pple TFB| video d|
|00000730| 72 69 76 65 72 2e 0d 32 | 2f 31 32 2f 39 31 09 64 |river..2|/12/91.d|
|00000740| 67 70 09 50 72 65 63 65 | 64 65 64 20 47 44 47 72 |gp.Prece|ded GDGr|
|00000750| 61 79 50 61 67 65 28 29 | 20 63 61 6c 6c 20 62 79 |ayPage()| call by|
|00000760| 20 47 44 53 65 74 4d 6f | 64 65 28 29 20 74 6f 20 | GDSetMo|de() to |
|00000770| 63 75 72 65 20 63 72 61 | 73 68 20 77 68 65 6e 20 |cure cra|sh when |
|00000780| 72 75 6e 6e 69 6e 67 0d | 09 09 09 70 72 6f 67 72 |running.|...progr|
|00000790| 61 6d 20 69 6d 6d 65 64 | 69 61 74 65 6c 79 20 61 |am immed|iately a|
|000007a0| 66 74 65 72 20 72 65 62 | 6f 6f 74 69 6e 67 2e 20 |fter reb|ooting. |
|000007b0| 4d 79 73 74 65 72 69 6f | 75 73 2e 0d 09 09 09 41 |Mysterio|us.....A|
|000007c0| 64 64 65 64 20 53 65 6c | 65 63 74 57 69 6e 64 6f |dded Sel|ectWindo|
|000007d0| 77 28 29 20 61 74 20 65 | 6e 64 20 6f 66 20 70 72 |w() at e|nd of pr|
|000007e0| 6f 67 72 61 6d 2e 0d 33 | 2f 39 2f 39 31 09 64 67 |ogram..3|/9/91.dg|
|000007f0| 70 09 50 72 69 6e 74 20 | 6f 75 74 20 6d 6f 64 65 |p.Print |out mode|
|00000800| 20 6e 61 6d 65 73 2e 0d | 34 2f 31 35 2f 39 31 09 | names..|4/15/91.|
|00000810| 64 67 70 09 4d 61 6b 65 | 20 73 75 72 65 20 74 68 |dgp.Make| sure th|
|00000820| 61 74 20 6e 65 77 20 70 | 61 6c 65 74 74 65 20 6d |at new p|alette m|
|00000830| 61 6e 61 67 65 72 20 65 | 78 69 73 74 73 20 62 65 |anager e|xists be|
|00000840| 66 6f 72 65 20 63 61 6c | 6c 69 6e 67 20 52 65 73 |fore cal|ling Res|
|00000850| 74 6f 72 65 44 65 76 69 | 63 65 43 6c 75 74 2e 0d |toreDevi|ceClut..|
|00000860| 09 09 09 54 68 61 6e 6b | 73 20 74 6f 20 43 68 75 |...Thank|s to Chu|
|00000870| 63 6b 20 53 74 65 69 6e | 20 66 6f 72 20 61 6c 65 |ck Stein| for ale|
|00000880| 72 74 69 6e 67 20 6d 65 | 20 74 6f 20 74 68 65 20 |rting me| to the |
|00000890| 62 75 67 2e 0d 36 2f 36 | 2f 39 31 09 64 67 70 09 |bug..6/6|/91.dgp.|
|000008a0| 54 69 6d 65 20 61 6e 64 | 20 70 72 69 6e 74 20 6f |Time and| print o|
|000008b0| 75 74 20 68 6f 77 20 6c | 6f 6e 67 20 47 44 53 65 |ut how l|ong GDSe|
|000008c0| 74 45 6e 74 72 69 65 73 | 20 74 61 6b 65 73 2e 0d |tEntries| takes..|
|000008d0| 38 2f 32 34 2f 39 31 09 | 64 67 70 09 4d 61 64 65 |8/24/91.|dgp.Made|
|000008e0| 20 63 6f 6d 70 61 74 69 | 62 6c 65 20 77 69 74 68 | compati|ble with|
|000008f0| 20 54 48 49 4e 4b 20 43 | 20 35 2e 30 2e 0d 31 2f | THINK C| 5.0..1/|
|00000900| 31 39 2f 39 32 09 64 67 | 70 09 43 6f 73 6d 65 74 |19/92.dg|p.Cosmet|
|00000910| 69 63 20 69 6d 70 72 6f | 76 65 6d 65 6e 74 73 20 |ic impro|vements |
|00000920| 74 6f 20 74 68 65 20 70 | 72 69 6e 74 6f 75 74 2e |to the p|rintout.|
|00000930| 0d 32 2f 32 35 2f 39 32 | 09 64 67 70 09 50 75 74 |.2/25/92|.dgp.Put|
|00000940| 20 74 69 6d 69 6e 67 20 | 69 6e 66 6f 20 69 6e 20 | timing |info in |
|00000950| 62 6f 6c 64 2e 0d 38 2f | 32 32 2f 39 32 09 64 67 |bold..8/|22/92.dg|
|00000960| 70 20 44 69 73 70 6c 61 | 79 20 72 65 73 75 6c 74 |p Displa|y result|
|00000970| 73 20 6f 66 20 63 61 6c | 6c 69 6e 67 20 47 44 46 |s of cal|ling GDF|
|00000980| 72 61 6d 65 52 61 74 65 | 28 29 20 61 6e 64 20 47 |rameRate|() and G|
|00000990| 44 46 72 61 6d 65 73 50 | 65 72 43 6c 75 74 55 70 |DFramesP|erClutUp|
|000009a0| 64 61 74 65 28 29 2e 0d | 38 2f 32 37 2f 39 32 09 |date()..|8/27/92.|
|000009b0| 64 67 70 09 72 65 70 6c | 61 63 65 20 53 79 73 45 |dgp.repl|ace SysE|
|000009c0| 6e 76 69 72 6f 6e 73 28 | 29 20 62 79 20 47 65 73 |nvirons(|) by Ges|
|000009d0| 74 61 6c 74 28 29 0d 31 | 32 2f 31 37 2f 39 32 20 |talt().1|2/17/92 |
|000009e0| 64 67 70 20 65 6e 68 61 | 6e 63 65 64 20 74 6f 20 |dgp enha|nced to |
|000009f0| 77 6f 72 6b 20 77 69 74 | 68 20 61 6e 79 20 64 61 |work wit|h any da|
|00000a00| 63 20 73 69 7a 65 2e 0d | 31 32 2f 33 30 2f 39 32 |c size..|12/30/92|
|00000a10| 20 64 67 70 20 55 73 65 | 20 47 44 43 6c 75 74 53 | dgp Use| GDClutS|
|00000a20| 69 7a 65 28 29 20 74 6f | 20 64 65 74 65 72 6d 69 |ize() to| determi|
|00000a30| 6e 65 20 63 6c 75 74 20 | 73 69 7a 65 2e 0d 31 2f |ne clut |size..1/|
|00000a40| 36 2f 39 33 09 64 67 70 | 09 54 69 64 69 65 64 20 |6/93.dgp|.Tidied |
|00000a50| 75 70 20 74 68 65 20 47 | 65 74 45 6e 74 72 69 65 |up the G|etEntrie|
|00000a60| 73 2f 53 65 74 45 6e 74 | 72 69 65 73 20 63 6f 64 |s/SetEnt|ries cod|
|00000a70| 65 2c 20 6e 6f 77 20 74 | 68 61 74 20 77 65 20 64 |e, now t|hat we d|
|00000a80| 6f 6e 27 74 20 68 61 76 | 65 0d 09 09 09 74 6f 20 |on't hav|e....to |
|00000a90| 74 65 73 74 20 66 6f 72 | 20 74 68 65 20 4d 61 63 |test for| the Mac|
|00000aa0| 20 49 49 63 69 20 64 72 | 69 76 65 72 2e 0d 09 09 | IIci dr|iver....|
|00000ab0| 09 53 6b 69 70 20 47 65 | 74 45 6e 74 72 69 65 73 |.Skip Ge|tEntries|
|00000ac0| 20 6f 6e 20 52 65 6c 61 | 78 20 64 72 69 76 65 72 | on Rela|x driver|
|00000ad0| 2e 0d 31 2f 37 2f 39 33 | 20 64 67 70 09 31 2e 31 |..1/7/93| dgp.1.1|
|00000ae0| 20 46 69 72 73 74 20 6e | 75 6d 62 65 72 65 64 20 | First n|umbered |
|00000af0| 76 65 72 73 69 6f 6e 2e | 0d 31 2f 31 38 2f 39 33 |version.|.1/18/93|
|00000b00| 09 64 67 70 09 52 65 6e | 61 6d 65 64 20 4d 6f 64 |.dgp.Ren|amed Mod|
|00000b10| 65 4e 61 6d 65 28 29 20 | 74 6f 20 47 44 4d 6f 64 |eName() |to GDMod|
|00000b20| 65 4e 61 6d 65 28 29 2e | 0d 31 2f 31 38 2f 39 33 |eName().|.1/18/93|
|00000b30| 09 64 67 70 09 4d 6f 76 | 65 64 20 74 68 65 20 63 |.dgp.Mov|ed the c|
|00000b40| 6f 64 65 20 74 68 61 74 | 20 63 68 65 63 6b 65 64 |ode that| checked|
|00000b50| 20 66 6f 72 20 62 61 64 | 20 64 72 69 76 65 72 73 | for bad| drivers|
|00000b60| 20 69 6e 74 6f 20 47 44 | 47 65 74 45 6e 74 72 69 | into GD|GetEntri|
|00000b70| 65 73 28 29 20 69 6e 20 | 47 44 56 69 64 65 6f 2e |es() in |GDVideo.|
|00000b80| 63 2c 0d 09 09 09 77 68 | 65 72 65 20 69 74 20 62 |c,....wh|ere it b|
|00000b90| 65 6c 6f 6e 67 73 2e 0d | 32 2f 31 2f 39 33 09 64 |elongs..|2/1/93.d|
|00000ba0| 67 70 20 52 65 70 6f 72 | 74 20 77 68 65 74 68 65 |gp Repor|t whethe|
|00000bb0| 72 20 64 72 69 76 65 72 | 20 69 73 20 52 41 4d 2d |r driver| is RAM-|
|00000bc0| 20 6f 72 20 52 4f 4d 2d | 62 61 73 65 64 2e 0d 32 | or ROM-|based..2|
|00000bd0| 2f 35 2f 39 33 09 64 67 | 70 09 31 2e 32 2e 20 52 |/5/93.dg|p.1.2. R|
|00000be0| 65 63 6f 6d 70 69 6c 65 | 64 20 77 69 74 68 20 6c |ecompile|d with l|
|00000bf0| 61 74 65 73 74 20 76 65 | 72 73 69 6f 6e 20 6f 66 |atest ve|rsion of|
|00000c00| 20 47 44 56 69 64 65 6f | 2c 20 77 68 69 63 68 20 | GDVideo|, which |
|00000c10| 6e 6f 77 20 73 75 70 70 | 6f 72 74 73 0d 09 09 09 |now supp|orts....|
|00000c20| 70 61 74 63 68 69 6e 67 | 20 6f 66 20 4d 61 63 20 |patching| of Mac |
|00000c30| 49 49 63 69 20 52 4f 4d | 2d 62 61 73 65 64 20 64 |IIci ROM|-based d|
|00000c40| 72 69 76 65 72 2e 0d 32 | 2f 36 2f 39 33 09 64 67 |river..2|/6/93.dg|
|00000c50| 70 09 31 2e 33 2e 20 52 | 65 70 6f 72 74 20 52 4f |p.1.3. R|eport RO|
|00000c60| 4d 20 76 65 72 73 69 6f | 6e 2c 20 69 66 20 64 72 |M versio|n, if dr|
|00000c70| 69 76 65 72 20 69 73 20 | 52 4f 4d 2d 62 61 73 65 |iver is |ROM-base|
|00000c80| 64 2e 0d 32 2f 37 2f 39 | 33 09 64 67 70 09 31 2e |d..2/7/9|3.dgp.1.|
|00000c90| 34 2e 20 52 65 63 6f 6d | 70 69 6c 65 64 20 61 66 |4. Recom|piled af|
|00000ca0| 74 65 72 20 66 69 78 69 | 6e 67 20 65 6e 64 6c 65 |ter fixi|ng endle|
|00000cb0| 73 73 20 6c 6f 6f 70 20 | 69 6e 20 50 61 74 63 68 |ss loop |in Patch|
|00000cc0| 4d 61 63 49 49 63 69 56 | 69 64 65 6f 44 72 69 76 |MacIIciV|ideoDriv|
|00000cd0| 65 72 0d 09 09 09 69 6e | 20 47 44 56 69 64 65 6f |er....in| GDVideo|
|00000ce0| 2e 63 0d 32 2f 31 38 2f | 39 33 09 64 67 70 09 31 |.c.2/18/|93.dgp.1|
|00000cf0| 2e 35 20 4d 61 64 65 20 | 63 6f 6d 70 61 74 69 62 |.5 Made |compatib|
|00000d00| 6c 65 20 77 69 74 68 20 | 50 6f 77 65 72 42 6f 6f |le with |PowerBoo|
|00000d10| 6b 20 31 36 30 2c 20 62 | 79 20 6f 6d 69 74 74 69 |k 160, b|y omitti|
|00000d20| 6e 67 20 63 61 6c 6c 20 | 74 6f 20 47 44 53 65 74 |ng call |to GDSet|
|00000d30| 49 6e 74 65 72 72 75 70 | 74 2e 0d 32 2f 32 32 2f |Interrup|t..2/22/|
|00000d40| 39 33 09 64 67 70 09 31 | 2e 36 20 4e 6f 20 6c 6f |93.dgp.1|.6 No lo|
|00000d50| 6e 67 65 72 20 61 73 73 | 75 6d 65 20 74 68 61 74 |nger ass|ume that|
|00000d60| 20 64 72 69 76 65 72 20 | 75 73 65 73 20 61 20 76 | driver |uses a v|
|00000d70| 65 72 73 69 6f 6e 20 30 | 20 67 61 6d 6d 61 20 74 |ersion 0| gamma t|
|00000d80| 61 62 6c 65 2e 0d 34 2f | 31 37 2f 39 33 09 64 67 |able..4/|17/93.dg|
|00000d90| 70 09 31 2e 37 20 52 65 | 70 6c 61 63 65 64 20 6f |p.1.7 Re|placed o|
|00000da0| 62 73 6f 6c 65 74 65 20 | 47 44 46 72 61 6d 65 73 |bsolete |GDFrames|
|00000db0| 50 65 72 43 6c 75 74 55 | 70 64 61 74 65 20 61 6e |PerClutU|pdate an|
|00000dc0| 64 20 47 44 54 69 6d 65 | 43 6c 75 74 55 70 64 61 |d GDTime|ClutUpda|
|00000dd0| 74 65 20 62 79 20 0d 09 | 09 09 47 44 54 69 6d 65 |te by ..|..GDTime|
|00000de0| 43 6c 75 74 2e 0d 37 2f | 37 2f 39 33 09 64 67 70 |Clut..7/|7/93.dgp|
|00000df0| 09 31 2e 38 20 41 20 62 | 69 74 20 6d 6f 72 65 20 |.1.8 A b|it more |
|00000e00| 65 72 72 6f 72 20 63 68 | 65 63 6b 69 6e 67 20 6f |error ch|ecking o|
|00000e10| 66 20 47 44 47 65 74 47 | 61 6d 6d 61 2e 0d 37 2f |f GDGetG|amma..7/|
|00000e20| 32 39 2f 39 34 20 64 67 | 70 20 45 6c 69 6d 69 6e |29/94 dg|p Elimin|
|00000e30| 61 74 65 64 20 75 73 65 | 20 6f 66 20 22 23 73 22 |ated use| of "#s"|
|00000e40| 20 70 72 69 6e 74 66 20 | 66 6f 72 6d 61 74 2c 20 | printf |format, |
|00000e50| 73 69 6e 63 65 20 69 74 | 27 73 20 6e 6f 74 20 73 |since it|'s not s|
|00000e60| 75 70 70 6f 72 74 65 64 | 20 62 79 0d 09 09 09 4d |upported| by....M|
|00000e70| 65 74 72 6f 77 65 72 6b | 73 20 43 6f 64 65 57 61 |etrowerk|s CodeWa|
|00000e80| 72 72 69 6f 72 20 43 2e | 0d 39 2f 35 2f 39 34 20 |rrior C.|.9/5/94 |
|00000e90| 64 67 70 20 72 65 6d 6f | 76 65 64 20 61 73 73 75 |dgp remo|ved assu|
|00000ea0| 6d 70 74 69 6f 6e 20 69 | 6e 20 70 72 69 6e 74 66 |mption i|n printf|
|00000eb0| 27 73 20 74 68 61 74 20 | 69 6e 74 3d 3d 73 68 6f |'s that |int==sho|
|00000ec0| 72 74 2e 0d 2a 2f 0d 23 | 69 6e 63 6c 75 64 65 20 |rt..*/.#|include |
|00000ed0| 22 56 69 64 65 6f 54 6f | 6f 6c 62 6f 78 2e 68 22 |"VideoTo|olbox.h"|
|00000ee0| 0d 23 69 6e 63 6c 75 64 | 65 20 3c 61 73 73 65 72 |.#includ|e <asser|
|00000ef0| 74 2e 68 3e 0d 23 69 6e | 63 6c 75 64 65 20 3c 46 |t.h>.#in|clude <F|
|00000f00| 69 6c 65 73 2e 68 3e 0d | 23 69 6e 63 6c 75 64 65 |iles.h>.|#include|
|00000f10| 20 3c 4d 65 6e 75 73 2e | 68 3e 0d 23 69 66 20 55 | <Menus.|h>.#if U|
|00000f20| 4e 49 56 45 52 53 41 4c | 5f 48 45 41 44 45 52 53 |NIVERSAL|_HEADERS|
|00000f30| 0d 09 23 69 6e 63 6c 75 | 64 65 20 3c 4c 6f 77 4d |..#inclu|de <LowM|
|00000f40| 65 6d 2e 68 3e 0d 23 65 | 6c 73 65 0d 09 23 64 65 |em.h>.#e|lse..#de|
|00000f50| 66 69 6e 65 20 4c 4d 47 | 65 74 4d 42 61 72 48 65 |fine LMG|etMBarHe|
|00000f60| 69 67 68 74 28 29 20 28 | 2a 20 28 73 68 6f 72 74 |ight() (|* (short|
|00000f70| 20 2a 29 20 30 78 30 42 | 41 41 29 0d 09 23 64 65 | *) 0x0B|AA)..#de|
|00000f80| 66 69 6e 65 20 4c 4d 53 | 65 74 4d 42 61 72 48 65 |fine LMS|etMBarHe|
|00000f90| 69 67 68 74 28 4d 42 61 | 72 48 65 69 67 68 74 56 |ight(MBa|rHeightV|
|00000fa0| 61 6c 75 65 29 20 28 28 | 2a 20 28 73 68 6f 72 74 |alue) ((|* (short|
|00000fb0| 20 2a 29 20 30 78 30 42 | 41 41 29 20 3d 20 28 4d | *) 0x0B|AA) = (M|
|00000fc0| 42 61 72 48 65 69 67 68 | 74 56 61 6c 75 65 29 29 |BarHeigh|tValue))|
|00000fd0| 0d 23 65 6e 64 69 66 0d | 69 6e 74 20 50 61 74 63 |.#endif.|int Patc|
|00000fe0| 68 4d 61 63 49 49 63 69 | 56 69 64 65 6f 44 72 69 |hMacIIci|VideoDri|
|00000ff0| 76 65 72 28 76 6f 69 64 | 29 3b 0d 76 6f 69 64 20 |ver(void|);.void |
|00001000| 47 61 6d 6d 61 52 65 70 | 6f 72 74 28 47 61 6d 6d |GammaRep|ort(Gamm|
|00001010| 61 54 62 6c 20 2a 67 61 | 6d 6d 61 29 3b 0d 76 6f |aTbl *ga|mma);.vo|
|00001020| 69 64 20 6d 61 69 6e 28 | 76 6f 69 64 29 3b 0d 76 |id main(|void);.v|
|00001030| 6f 69 64 20 54 65 73 74 | 47 44 56 69 64 65 6f 28 |oid Test|GDVideo(|
|00001040| 76 6f 69 64 29 3b 0d 73 | 74 61 74 69 63 20 76 6f |void);.s|tatic vo|
|00001050| 69 64 20 45 72 72 6f 72 | 28 69 6e 74 20 65 72 72 |id Error|(int err|
|00001060| 6f 72 29 3b 0d 23 64 65 | 66 69 6e 65 20 64 52 41 |or);.#de|fine dRA|
|00001070| 4d 42 61 73 65 64 09 09 | 30 78 30 30 34 30 0d 23 |MBased..|0x0040.#|
|00001080| 64 65 66 69 6e 65 20 56 | 45 52 53 49 4f 4e 20 22 |define V|ERSION "|
|00001090| 31 2e 38 22 0d 23 64 65 | 66 69 6e 65 20 53 43 52 |1.8".#de|fine SCR|
|000010a0| 45 45 4e 53 20 38 0d 73 | 74 61 74 69 63 20 42 6f |EENS 8.s|tatic Bo|
|000010b0| 6f 6c 65 61 6e 20 70 72 | 69 6e 74 47 61 6d 6d 61 |olean pr|intGamma|
|000010c0| 54 61 62 6c 65 3d 30 3b | 09 2f 2f 20 53 65 74 20 |Table=0;|.// Set |
|000010d0| 74 68 69 73 20 74 6f 20 | 31 20 74 6f 20 65 6e 61 |this to |1 to ena|
|000010e0| 62 6c 65 20 70 72 69 6e | 74 69 6e 67 20 6f 66 20 |ble prin|ting of |
|000010f0| 67 61 6d 6d 61 20 74 61 | 62 6c 65 2e 0d 0d 76 6f |gamma ta|ble...vo|
|00001100| 69 64 20 6d 61 69 6e 28 | 76 6f 69 64 29 0d 7b 0d |id main(|void).{.|
|00001110| 09 53 74 61 63 6b 47 72 | 6f 77 28 32 30 30 30 30 |.StackGr|ow(20000|
|00001120| 29 3b 0d 09 52 65 71 75 | 69 72 65 28 67 65 73 74 |);..Requ|ire(gest|
|00001130| 61 6c 74 38 42 69 74 51 | 44 29 3b 0d 09 54 65 73 |alt8BitQ|D);..Tes|
|00001140| 74 47 44 56 69 64 65 6f | 28 29 3b 0d 7d 0d 09 0d |tGDVideo|();.}...|
|00001150| 43 57 69 6e 64 6f 77 50 | 74 72 20 63 77 3b 09 09 |CWindowP|tr cw;..|
|00001160| 09 2f 2f 20 6a 75 73 74 | 20 66 6f 72 20 70 6f 6b |.// just| for pok|
|00001170| 69 6e 67 20 61 72 6f 75 | 6e 64 20 69 6e 20 74 68 |ing arou|nd in th|
|00001180| 65 20 64 65 62 75 67 67 | 65 72 0d 47 44 48 61 6e |e debugg|er.GDHan|
|00001190| 64 6c 65 20 6d 61 69 6e | 44 65 76 69 63 65 3b 09 |dle main|Device;.|
|000011a0| 2f 2f 20 6a 75 73 74 20 | 66 6f 72 20 70 6f 6b 69 |// just |for poki|
|000011b0| 6e 67 20 61 72 6f 75 6e | 64 20 69 6e 20 74 68 65 |ng aroun|d in the|
|000011c0| 20 64 65 62 75 67 67 65 | 72 0d 76 6f 69 64 20 54 | debugge|r.void T|
|000011d0| 65 73 74 47 44 56 69 64 | 65 6f 28 76 6f 69 64 29 |estGDVid|eo(void)|
|000011e0| 0d 7b 0d 09 57 69 6e 64 | 6f 77 50 74 72 20 77 69 |.{..Wind|owPtr wi|
|000011f0| 6e 64 6f 77 5b 53 43 52 | 45 45 4e 53 5d 2c 6f 6c |ndow[SCR|EENS],ol|
|00001200| 64 50 6f 72 74 3b 0d 09 | 73 74 61 74 69 63 20 43 |dPort;..|static C|
|00001210| 6f 6c 6f 72 53 70 65 63 | 20 6d 79 54 61 62 6c 65 |olorSpec| myTable|
|00001220| 5b 31 30 32 34 5d 3b 09 | 2f 2f 20 45 6e 6f 75 67 |[1024];.|// Enoug|
|00001230| 68 20 66 6f 72 20 31 30 | 2d 62 69 74 20 64 61 63 |h for 10|-bit dac|
|00001240| 73 0d 09 43 6f 6c 6f 72 | 53 70 65 63 20 62 6c 61 |s..Color|Spec bla|
|00001250| 63 6b 3d 7b 30 2c 30 2c | 30 2c 30 7d 3b 0d 09 57 |ck={0,0,|0,0};..W|
|00001260| 69 6e 64 6f 77 50 74 72 | 20 74 68 65 57 69 6e 64 |indowPtr| theWind|
|00001270| 6f 77 3b 0d 09 47 44 48 | 61 6e 64 6c 65 20 64 65 |ow;..GDH|andle de|
|00001280| 76 69 63 65 3b 0d 09 73 | 68 6f 72 74 20 69 2c 65 |vice;..s|hort i,e|
|00001290| 72 72 6f 72 2c 73 63 72 | 65 65 6e 2c 6d 6f 64 65 |rror,scr|een,mode|
|000012a0| 2c 70 61 67 65 2c 70 61 | 67 65 73 2c 73 74 61 72 |,page,pa|ges,star|
|000012b0| 74 2c 63 6f 75 6e 74 2c | 70 69 78 65 6c 53 69 7a |t,count,|pixelSiz|
|000012c0| 65 2c 74 79 70 65 2c 63 | 6c 75 74 53 69 7a 65 3b |e,type,c|lutSize;|
|000012d0| 0d 09 73 68 6f 72 74 20 | 74 65 78 74 53 69 7a 65 |..short |textSize|
|000012e0| 3d 31 32 2c 64 61 63 53 | 69 7a 65 2c 64 61 74 61 |=12,dacS|ize,data|
|000012f0| 53 69 7a 65 2c 64 61 74 | 61 43 6e 74 2c 66 6f 6e |Size,dat|aCnt,fon|
|00001300| 74 4e 75 6d 62 65 72 2c | 77 68 65 72 65 3b 0d 09 |tNumber,|where;..|
|00001310| 73 68 6f 72 74 20 67 61 | 6d 6d 61 44 61 74 61 57 |short ga|mmaDataW|
|00001320| 69 64 74 68 3b 0d 09 6c | 6f 6e 67 20 73 79 73 74 |idth;..l|ong syst|
|00001330| 65 6d 56 65 72 73 69 6f | 6e 3d 30 3b 0d 09 42 6f |emVersio|n=0;..Bo|
|00001340| 6f 6c 65 61 6e 20 66 6c | 61 67 2c 6b 65 65 70 57 |olean fl|ag,keepW|
|00001350| 61 69 74 69 6e 67 3b 0d | 09 47 61 6d 6d 61 54 62 |aiting;.|.GammaTb|
|00001360| 6c 20 2a 67 61 6d 6d 61 | 3d 4e 55 4c 4c 2c 2a 6d |l *gamma|=NULL,*m|
|00001370| 79 47 61 6d 6d 61 3d 4e | 55 4c 4c 3b 0d 09 63 68 |yGamma=N|ULL;..ch|
|00001380| 61 72 20 2a 6e 61 6d 65 | 3b 0d 09 50 74 72 20 62 |ar *name|;..Ptr b|
|00001390| 61 73 65 41 64 64 72 3b | 0d 09 52 65 63 74 20 6d |aseAddr;|..Rect m|
|000013a0| 79 52 65 63 74 3b 0d 09 | 64 6f 75 62 6c 65 20 66 |yRect;..|double f|
|000013b0| 3b 0d 09 75 6e 73 69 67 | 6e 65 64 20 63 68 61 72 |;..unsig|ned char|
|000013c0| 20 2a 62 79 74 65 3b 0d | 09 75 6e 73 69 67 6e 65 | *byte;.|.unsigne|
|000013d0| 64 20 73 68 6f 72 74 20 | 2a 77 6f 72 64 3b 0d 09 |d short |*word;..|
|000013e0| 42 6f 6f 6c 65 61 6e 20 | 70 61 74 63 68 3b 0d 09 |Boolean |patch;..|
|000013f0| 63 68 61 72 20 74 79 70 | 65 4e 61 6d 65 5b 5d 5b |char typ|eName[][|
|00001400| 31 36 5d 3d 7b 22 63 6c | 75 74 54 79 70 65 22 2c |16]={"cl|utType",|
|00001410| 22 66 69 78 65 64 54 79 | 70 65 22 2c 22 64 69 72 |"fixedTy|pe","dir|
|00001420| 65 63 74 54 79 70 65 22 | 7d 3b 0d 09 41 75 78 44 |ectType"|};..AuxD|
|00001430| 43 45 20 2a 2a 61 75 78 | 44 43 45 48 61 6e 64 6c |CE **aux|DCEHandl|
|00001440| 65 3b 0d 09 6c 6f 6e 67 | 20 73 69 7a 65 3b 0d 09 |e;..long| size;..|
|00001450| 50 74 72 20 70 74 72 3b | 0d 09 6c 6f 6e 67 20 72 |Ptr ptr;|..long r|
|00001460| 6f 6d 53 69 7a 65 2c 72 | 6f 6d 56 65 72 73 69 6f |omSize,r|omVersio|
|00001470| 6e 3b 0d 09 64 6f 75 62 | 6c 65 20 73 2c 66 72 61 |n;..doub|le s,fra|
|00001480| 6d 65 73 2c 6d 69 73 73 | 69 6e 67 46 72 61 6d 65 |mes,miss|ingFrame|
|00001490| 73 2c 66 72 61 6d 65 52 | 61 74 65 3b 0d 09 45 76 |s,frameR|ate;..Ev|
|000014a0| 65 6e 74 52 65 63 6f 72 | 64 20 65 76 65 6e 74 3b |entRecor|d event;|
|000014b0| 0d 09 0d 09 49 6e 69 74 | 47 72 61 66 28 26 71 64 |....Init|Graf(&qd|
|000014c0| 2e 74 68 65 50 6f 72 74 | 29 3b 0d 09 49 6e 69 74 |.thePort|);..Init|
|000014d0| 46 6f 6e 74 73 28 29 3b | 0d 09 49 6e 69 74 57 69 |Fonts();|..InitWi|
|000014e0| 6e 64 6f 77 73 28 29 3b | 0d 09 49 6e 69 74 43 75 |ndows();|..InitCu|
|000014f0| 72 73 6f 72 28 29 3b 0d | 09 47 65 74 50 6f 72 74 |rsor();.|.GetPort|
|00001500| 28 26 6f 6c 64 50 6f 72 | 74 29 3b 0d 09 5f 61 74 |(&oldPor|t);.._at|
|00001510| 65 78 69 74 28 52 65 73 | 74 6f 72 65 43 6c 75 74 |exit(Res|toreClut|
|00001520| 73 29 3b 0d 09 70 61 74 | 63 68 3d 50 61 74 63 68 |s);..pat|ch=Patch|
|00001530| 4d 61 63 49 49 63 69 56 | 69 64 65 6f 44 72 69 76 |MacIIciV|ideoDriv|
|00001540| 65 72 28 29 3b 0d 09 66 | 6f 72 28 73 63 72 65 65 |er();..f|or(scree|
|00001550| 6e 3d 30 3b 73 63 72 65 | 65 6e 3c 53 43 52 45 45 |n=0;scre|en<SCREE|
|00001560| 4e 53 3b 73 63 72 65 65 | 6e 2b 2b 29 7b 0d 09 09 |NS;scree|n++){...|
|00001570| 53 65 74 50 6f 72 74 28 | 6f 6c 64 50 6f 72 74 29 |SetPort(|oldPort)|
|00001580| 3b 0d 09 09 64 65 76 69 | 63 65 20 3d 20 47 65 74 |;...devi|ce = Get|
|00001590| 53 63 72 65 65 6e 44 65 | 76 69 63 65 28 73 63 72 |ScreenDe|vice(scr|
|000015a0| 65 65 6e 29 3b 0d 09 09 | 69 66 28 64 65 76 69 63 |een);...|if(devic|
|000015b0| 65 20 3d 3d 20 4e 55 4c | 4c 29 20 62 72 65 61 6b |e == NUL|L) break|
|000015c0| 3b 0d 0d 09 09 2f 2a 0d | 09 09 46 6f 72 20 72 65 |;..../*.|..For re|
|000015d0| 61 73 6f 6e 73 20 74 68 | 61 74 20 49 20 64 6f 6e |asons th|at I don|
|000015e0| 27 74 20 75 6e 64 65 72 | 73 74 61 6e 64 2c 20 63 |'t under|stand, c|
|000015f0| 61 6c 6c 69 6e 67 20 63 | 73 63 47 72 61 79 50 61 |alling c|scGrayPa|
|00001600| 67 65 28 29 20 66 69 72 | 73 74 2c 0d 09 09 69 6d |ge() fir|st,...im|
|00001610| 6d 65 64 69 61 74 65 6c | 79 20 61 66 74 65 72 20 |mediatel|y after |
|00001620| 72 65 62 6f 6f 74 69 6e | 67 2c 20 72 65 73 75 6c |rebootin|g, resul|
|00001630| 74 73 20 69 6e 20 61 20 | 63 72 61 73 68 20 77 68 |ts in a |crash wh|
|00001640| 65 6e 20 75 73 69 6e 67 | 20 61 6e 20 41 70 70 6c |en using| an Appl|
|00001650| 65 27 73 0d 09 09 6f 6c | 64 20 22 54 6f 62 79 22 |e's...ol|d "Toby"|
|00001660| 20 76 69 64 65 6f 20 63 | 61 72 64 2e 20 50 72 65 | video c|ard. Pre|
|00001670| 63 65 64 69 6e 67 20 74 | 68 65 20 63 61 6c 6c 20 |ceding t|he call |
|00001680| 62 79 0d 09 09 61 20 63 | 61 6c 6c 20 74 6f 20 63 |by...a c|all to c|
|00001690| 73 63 53 65 74 4d 6f 64 | 65 28 29 20 63 75 72 65 |scSetMod|e() cure|
|000016a0| 73 20 74 68 65 20 73 79 | 6d 70 74 6f 6d 2e 20 4c |s the sy|mptom. L|
|000016b0| 61 74 65 72 20 63 61 6c | 6c 73 20 74 6f 20 63 73 |ater cal|ls to cs|
|000016c0| 63 47 72 61 79 50 61 67 | 65 28 29 0d 09 09 73 65 |cGrayPag|e()...se|
|000016d0| 65 6d 20 74 6f 20 61 6c | 77 61 79 73 20 77 6f 72 |em to al|ways wor|
|000016e0| 6b 20 66 69 6e 65 2e 20 | 50 72 65 73 75 6d 61 62 |k fine. |Presumab|
|000016f0| 6c 79 20 73 6f 6d 65 74 | 68 69 6e 67 20 69 73 20 |ly somet|hing is |
|00001700| 6e 6f 74 20 70 72 6f 70 | 65 72 6c 79 20 69 6e 69 |not prop|erly ini|
|00001710| 74 69 61 6c 69 7a 65 64 | 0d 09 09 69 6e 20 74 68 |tialized|...in th|
|00001720| 65 20 41 70 70 6c 65 20 | 76 69 64 65 6f 20 63 61 |e Apple |video ca|
|00001730| 72 64 20 64 72 69 76 65 | 72 2e 20 28 54 6f 62 79 |rd drive|r. (Toby|
|00001740| 20 63 61 72 64 20 64 72 | 69 76 65 72 20 76 65 72 | card dr|iver ver|
|00001750| 73 69 6f 6e 20 34 2e 29 | 0d 09 09 2a 2f 0d 09 09 |sion 4.)|...*/...|
|00001760| 65 72 72 6f 72 3d 47 44 | 47 65 74 4d 6f 64 65 28 |error=GD|GetMode(|
|00001770| 64 65 76 69 63 65 2c 26 | 6d 6f 64 65 2c 26 70 61 |device,&|mode,&pa|
|00001780| 67 65 2c 26 62 61 73 65 | 41 64 64 72 29 3b 0d 09 |ge,&base|Addr);..|
|00001790| 09 65 72 72 6f 72 3d 47 | 44 53 65 74 4d 6f 64 65 |.error=G|DSetMode|
|000017a0| 28 64 65 76 69 63 65 2c | 6d 6f 64 65 2c 70 61 67 |(device,|mode,pag|
|000017b0| 65 2c 26 62 61 73 65 41 | 64 64 72 29 3b 0d 09 09 |e,&baseA|ddr);...|
|000017c0| 47 44 52 65 73 74 6f 72 | 65 44 65 76 69 63 65 43 |GDRestor|eDeviceC|
|000017d0| 6c 75 74 28 64 65 76 69 | 63 65 29 3b 0d 09 09 0d |lut(devi|ce);....|
|000017e0| 09 09 65 72 72 6f 72 3d | 47 44 47 72 61 79 50 61 |..error=|GDGrayPa|
|000017f0| 67 65 28 64 65 76 69 63 | 65 2c 70 61 67 65 29 3b |ge(devic|e,page);|
|00001800| 0d 09 09 69 66 28 73 63 | 72 65 65 6e 3d 3d 30 29 |...if(sc|reen==0)|
|00001810| 44 72 61 77 4d 65 6e 75 | 42 61 72 28 29 3b 09 2f |DrawMenu|Bar();./|
|00001820| 2a 20 72 65 73 74 6f 72 | 65 20 6d 65 6e 75 20 62 |* restor|e menu b|
|00001830| 61 72 20 61 66 74 65 72 | 20 47 72 61 79 53 63 72 |ar after| GrayScr|
|00001840| 65 65 6e 20 2a 2f 0d 0d | 09 09 2f 2a 20 4f 70 65 |een */..|../* Ope|
|00001850| 6e 20 77 69 6e 64 6f 77 | 20 2a 2f 0d 09 09 6d 79 |n window| */...my|
|00001860| 52 65 63 74 20 3d 20 28 | 2a 64 65 76 69 63 65 29 |Rect = (|*device)|
|00001870| 2d 3e 67 64 52 65 63 74 | 3b 09 2f 2a 20 72 65 63 |->gdRect|;./* rec|
|00001880| 74 20 6f 66 20 64 65 73 | 69 72 65 64 20 73 63 72 |t of des|ired scr|
|00001890| 65 65 6e 20 69 6e 20 67 | 6c 6f 62 61 6c 20 63 6f |een in g|lobal co|
|000018a0| 6f 72 64 69 6e 61 74 65 | 73 20 2a 2f 0d 09 09 69 |ordinate|s */...i|
|000018b0| 66 28 73 63 72 65 65 6e | 3d 3d 30 29 6d 79 52 65 |f(screen|==0)myRe|
|000018c0| 63 74 2e 74 6f 70 2b 3d | 4c 4d 47 65 74 4d 42 61 |ct.top+=|LMGetMBa|
|000018d0| 72 48 65 69 67 68 74 28 | 29 3b 09 2f 2a 20 61 6c |rHeight(|);./* al|
|000018e0| 6c 6f 77 20 66 6f 72 20 | 6d 65 6e 75 20 62 61 72 |low for |menu bar|
|000018f0| 20 2a 2f 0d 09 09 6d 79 | 52 65 63 74 2e 74 6f 70 | */...my|Rect.top|
|00001900| 2b 3d 31 37 3b 09 09 09 | 09 09 09 09 09 2f 2a 20 |+=17;...|...../* |
|00001910| 61 6c 6c 6f 77 20 66 6f | 72 20 74 69 74 6c 65 20 |allow fo|r title |
|00001920| 62 61 72 20 2a 2f 0d 09 | 09 49 6e 73 65 74 52 65 |bar */..|.InsetRe|
|00001930| 63 74 28 26 6d 79 52 65 | 63 74 2c 31 2c 31 29 3b |ct(&myRe|ct,1,1);|
|00001940| 0d 09 09 6e 61 6d 65 3d | 47 44 43 61 72 64 4e 61 |...name=|GDCardNa|
|00001950| 6d 65 28 64 65 76 69 63 | 65 29 3b 0d 09 09 63 32 |me(devic|e);...c2|
|00001960| 70 73 74 72 28 6e 61 6d | 65 29 3b 0d 09 09 77 69 |pstr(nam|e);...wi|
|00001970| 6e 64 6f 77 5b 73 63 72 | 65 65 6e 5d 3d 0d 09 09 |ndow[scr|een]=...|
|00001980| 09 4e 65 77 43 57 69 6e | 64 6f 77 28 4e 55 4c 4c |.NewCWin|dow(NULL|
|00001990| 2c 26 6d 79 52 65 63 74 | 2c 28 75 6e 73 69 67 6e |,&myRect|,(unsign|
|000019a0| 65 64 20 63 68 61 72 20 | 2a 29 6e 61 6d 65 2c 54 |ed char |*)name,T|
|000019b0| 52 55 45 2c 64 6f 63 75 | 6d 65 6e 74 50 72 6f 63 |RUE,docu|mentProc|
|000019c0| 2c 28 57 69 6e 64 6f 77 | 50 74 72 29 20 2d 31 4c |,(Window|Ptr) -1L|
|000019d0| 2c 54 52 55 45 2c 31 32 | 33 4c 29 3b 0d 09 09 63 |,TRUE,12|3L);...c|
|000019e0| 77 3d 28 43 57 69 6e 64 | 6f 77 50 74 72 29 77 69 |w=(CWind|owPtr)wi|
|000019f0| 6e 64 6f 77 5b 73 63 72 | 65 65 6e 5d 3b 09 2f 2f |ndow[scr|een];.//|
|00001a00| 20 6a 75 73 74 20 66 6f | 72 20 70 6f 6b 69 6e 67 | just fo|r poking|
|00001a10| 20 61 72 6f 75 6e 64 20 | 69 6e 20 74 68 65 20 64 | around |in the d|
|00001a20| 65 62 75 67 67 65 72 0d | 09 09 6d 61 69 6e 44 65 |ebugger.|..mainDe|
|00001a30| 76 69 63 65 3d 47 65 74 | 4d 61 69 6e 44 65 76 69 |vice=Get|MainDevi|
|00001a40| 63 65 28 29 3b 09 09 2f | 2f 20 6a 75 73 74 20 66 |ce();../|/ just f|
|00001a50| 6f 72 20 70 6f 6b 69 6e | 67 20 61 72 6f 75 6e 64 |or pokin|g around|
|00001a60| 20 69 6e 20 74 68 65 20 | 64 65 62 75 67 67 65 72 | in the |debugger|
|00001a70| 0d 09 09 2f 2a 20 57 72 | 69 74 65 20 69 6e 20 77 |.../* Wr|ite in w|
|00001a80| 69 6e 64 6f 77 20 2a 2f | 0d 09 09 53 65 74 50 6f |indow */|...SetPo|
|00001a90| 72 74 28 77 69 6e 64 6f | 77 5b 73 63 72 65 65 6e |rt(windo|w[screen|
|00001aa0| 5d 29 3b 0d 09 09 6d 79 | 52 65 63 74 3d 77 69 6e |]);...my|Rect=win|
|00001ab0| 64 6f 77 5b 73 63 72 65 | 65 6e 5d 2d 3e 70 6f 72 |dow[scre|en]->por|
|00001ac0| 74 52 65 63 74 3b 0d 09 | 09 47 65 74 46 4e 75 6d |tRect;..|.GetFNum|
|00001ad0| 28 22 5c 70 54 69 6d 65 | 73 22 2c 26 66 6f 6e 74 |("\pTime|s",&font|
|00001ae0| 4e 75 6d 62 65 72 29 3b | 0d 09 09 54 65 78 74 46 |Number);|...TextF|
|00001af0| 6f 6e 74 28 66 6f 6e 74 | 4e 75 6d 62 65 72 29 3b |ont(font|Number);|
|00001b00| 0d 09 09 54 65 78 74 53 | 69 7a 65 28 74 65 78 74 |...TextS|ize(text|
|00001b10| 53 69 7a 65 29 3b 0d 09 | 09 44 72 61 77 50 72 69 |Size);..|.DrawPri|
|00001b20| 6e 74 66 28 22 5c 6e 22 | 29 3b 0d 09 09 69 66 28 |ntf("\n"|);...if(|
|00001b30| 73 63 72 65 65 6e 3d 3d | 30 29 44 72 61 77 50 72 |screen==|0)DrawPr|
|00001b40| 69 6e 74 66 28 22 57 65 | 6c 63 6f 6d 65 20 74 6f |intf("We|lcome to|
|00001b50| 20 54 65 73 74 47 44 56 | 69 64 65 6f 20 22 20 56 | TestGDV|ideo " V|
|00001b60| 45 52 53 49 4f 4e 20 22 | 2e 20 4e 6f 77 20 74 65 |ERSION "|. Now te|
|00001b70| 73 74 69 6e 67 20 61 6c | 6c 20 79 6f 75 72 20 76 |sting al|l your v|
|00001b80| 69 64 65 6f 20 64 72 69 | 76 65 72 73 2e 22 0d 09 |ideo dri|vers."..|
|00001b90| 09 22 20 50 6c 65 61 73 | 65 20 72 65 70 6f 72 74 |." Pleas|e report|
|00001ba0| 20 61 6e 79 20 63 72 61 | 73 68 20 74 6f 20 64 65 | any cra|sh to de|
|00001bb0| 6e 69 73 40 78 70 2e 70 | 73 79 63 68 2e 6e 79 75 |nis@xp.p|sych.nyu|
|00001bc0| 2e 65 64 75 5c 6e 22 29 | 3b 0d 0d 09 09 44 72 61 |.edu\n")|;....Dra|
|00001bd0| 77 50 72 69 6e 74 66 28 | 22 44 72 69 76 65 72 3a |wPrintf(|"Driver:|
|00001be0| 20 25 73 20 76 65 72 73 | 69 6f 6e 20 25 64 22 2c | %s vers|ion %d",|
|00001bf0| 47 44 4e 61 6d 65 53 74 | 72 28 64 65 76 69 63 65 |GDNameSt|r(device|
|00001c00| 29 2c 28 69 6e 74 29 47 | 44 56 65 72 73 69 6f 6e |),(int)G|DVersion|
|00001c10| 28 64 65 76 69 63 65 29 | 29 3b 0d 09 09 61 75 78 |(device)|);...aux|
|00001c20| 44 43 45 48 61 6e 64 6c | 65 20 3d 20 28 41 75 78 |DCEHandl|e = (Aux|
|00001c30| 44 43 45 20 2a 2a 29 20 | 47 65 74 44 43 74 6c 45 |DCE **) |GetDCtlE|
|00001c40| 6e 74 72 79 28 28 2a 64 | 65 76 69 63 65 29 2d 3e |ntry((*d|evice)->|
|00001c50| 67 64 52 65 66 4e 75 6d | 29 3b 0d 09 09 69 66 28 |gdRefNum|);...if(|
|00001c60| 28 2a 2a 61 75 78 44 43 | 45 48 61 6e 64 6c 65 29 |(**auxDC|EHandle)|
|00001c70| 2e 64 43 74 6c 46 6c 61 | 67 73 20 26 20 64 52 41 |.dCtlFla|gs & dRA|
|00001c80| 4d 42 61 73 65 64 29 7b | 0d 09 09 09 2f 2a 20 52 |MBased){|..../* R|
|00001c90| 41 4d 2d 62 61 73 65 64 | 20 64 72 69 76 65 72 2e |AM-based| driver.|
|00001ca0| 20 2a 2f 0d 09 09 09 73 | 69 7a 65 3d 47 65 74 48 | */....s|ize=GetH|
|00001cb0| 61 6e 64 6c 65 53 69 7a | 65 28 28 48 61 6e 64 6c |andleSiz|e((Handl|
|00001cc0| 65 29 28 2a 2a 61 75 78 | 44 43 45 48 61 6e 64 6c |e)(**aux|DCEHandl|
|00001cd0| 65 29 2e 64 43 74 6c 44 | 72 69 76 65 72 29 3b 0d |e).dCtlD|river);.|
|00001ce0| 09 09 09 44 72 61 77 50 | 72 69 6e 74 66 28 22 2c |...DrawP|rintf(",|
|00001cf0| 20 6f 63 63 75 70 79 69 | 6e 67 20 25 6c 64 20 62 | occupyi|ng %ld b|
|00001d00| 79 74 65 73 20 69 6e 20 | 52 41 4d 2e 22 2c 73 69 |ytes in |RAM.",si|
|00001d10| 7a 65 29 3b 0d 09 09 7d | 65 6c 73 65 7b 0d 09 09 |ze);...}|else{...|
|00001d20| 09 2f 2a 20 52 4f 4d 2d | 62 61 73 65 64 20 64 72 |./* ROM-|based dr|
|00001d30| 69 76 65 72 2e 20 2a 2f | 0d 09 09 09 70 74 72 3d |iver. */|....ptr=|
|00001d40| 28 2a 2a 61 75 78 44 43 | 45 48 61 6e 64 6c 65 29 |(**auxDC|EHandle)|
|00001d50| 2e 64 43 74 6c 44 72 69 | 76 65 72 3b 0d 09 09 09 |.dCtlDri|ver;....|
|00001d60| 47 65 73 74 61 6c 74 28 | 67 65 73 74 61 6c 74 52 |Gestalt(|gestaltR|
|00001d70| 4f 4d 53 69 7a 65 2c 26 | 72 6f 6d 53 69 7a 65 29 |OMSize,&|romSize)|
|00001d80| 3b 0d 09 09 09 47 65 73 | 74 61 6c 74 28 67 65 73 |;....Ges|talt(ges|
|00001d90| 74 61 6c 74 52 4f 4d 56 | 65 72 73 69 6f 6e 2c 26 |taltROMV|ersion,&|
|00001da0| 72 6f 6d 56 65 72 73 69 | 6f 6e 29 3b 0d 09 09 09 |romVersi|on);....|
|00001db0| 44 72 61 77 50 72 69 6e | 74 66 28 22 2c 20 61 74 |DrawPrin|tf(", at|
|00001dc0| 20 30 78 25 6c 78 20 69 | 6e 20 52 4f 4d 2e 20 25 | 0x%lx i|n ROM. %|
|00001dd0| 6c 64 20 4b 20 52 4f 4d | 20 76 65 72 73 69 6f 6e |ld K ROM| version|
|00001de0| 20 25 6c 64 20 28 25 6c | 64 29 2e 22 0d 09 09 09 | %ld (%l|d)."....|
|00001df0| 09 2c 70 74 72 2c 72 6f | 6d 53 69 7a 65 2f 31 30 |.,ptr,ro|mSize/10|
|00001e00| 32 34 2c 72 6f 6d 56 65 | 72 73 69 6f 6e 25 32 35 |24,romVe|rsion%25|
|00001e10| 36 2c 28 72 6f 6d 56 65 | 72 73 69 6f 6e 2f 32 35 |6,(romVe|rsion/25|
|00001e20| 36 29 29 3b 0d 09 09 7d | 0d 09 09 44 72 61 77 50 |6));...}|...DrawP|
|00001e30| 72 69 6e 74 66 28 22 5c | 6e 22 29 3b 0d 09 09 69 |rintf("\|n");...i|
|00001e40| 66 28 47 65 74 44 65 76 | 69 63 65 53 6c 6f 74 28 |f(GetDev|iceSlot(|
|00001e50| 64 65 76 69 63 65 29 3e | 3d 30 29 44 72 61 77 50 |device)>|=0)DrawP|
|00001e60| 72 69 6e 74 66 28 22 53 | 6c 6f 74 3a 20 25 64 5c |rintf("S|lot: %d\|
|00001e70| 6e 22 2c 28 69 6e 74 29 | 47 65 74 44 65 76 69 63 |n",(int)|GetDevic|
|00001e80| 65 53 6c 6f 74 28 64 65 | 76 69 63 65 29 29 3b 0d |eSlot(de|vice));.|
|00001e90| 09 09 65 6c 73 65 20 44 | 72 61 77 50 72 69 6e 74 |..else D|rawPrint|
|00001ea0| 66 28 22 53 6c 6f 74 3a | 20 6e 6f 6e 65 5c 6e 22 |f("Slot:| none\n"|
|00001eb0| 29 3b 0d 09 0d 09 09 44 | 72 61 77 50 72 69 6e 74 |);.....D|rawPrint|
|00001ec0| 66 28 22 47 72 61 79 50 | 61 67 65 3a 20 22 29 3b |f("GrayP|age: ");|
|00001ed0| 0d 09 09 69 66 28 65 72 | 72 6f 72 29 20 45 72 72 |...if(er|ror) Err|
|00001ee0| 6f 72 28 65 72 72 6f 72 | 29 3b 0d 09 09 65 6c 73 |or(error|);...els|
|00001ef0| 65 20 44 72 61 77 50 72 | 69 6e 74 66 28 22 6f 6b |e DrawPr|intf("ok|
|00001f00| 5c 6e 22 29 3b 0d 0d 09 | 09 44 72 61 77 50 72 69 |\n");...|.DrawPri|
|00001f10| 6e 74 66 28 22 63 73 63 | 47 65 74 4d 6f 64 65 3a |ntf("csc|GetMode:|
|00001f20| 20 22 29 3b 0d 09 09 65 | 72 72 6f 72 3d 47 44 47 | ");...e|rror=GDG|
|00001f30| 65 74 4d 6f 64 65 28 64 | 65 76 69 63 65 2c 26 6d |etMode(d|evice,&m|
|00001f40| 6f 64 65 2c 26 70 61 67 | 65 2c 26 62 61 73 65 41 |ode,&pag|e,&baseA|
|00001f50| 64 64 72 29 3b 0d 09 09 | 69 66 28 65 72 72 6f 72 |ddr);...|if(error|
|00001f60| 29 20 45 72 72 6f 72 28 | 65 72 72 6f 72 29 3b 0d |) Error(|error);.|
|00001f70| 09 09 65 6c 73 65 20 44 | 72 61 77 50 72 69 6e 74 |..else D|rawPrint|
|00001f80| 66 28 22 25 64 2d 62 69 | 74 20 6d 6f 64 65 2c 20 |f("%d-bi|t mode, |
|00001f90| 70 61 67 65 20 25 64 20 | 62 61 73 65 20 61 64 64 |page %d |base add|
|00001fa0| 72 65 73 73 20 30 78 25 | 6c 58 5c 6e 22 0d 09 09 |ress 0x%|lX\n"...|
|00001fb0| 09 2c 28 69 6e 74 29 47 | 44 50 69 78 65 6c 53 69 |.,(int)G|DPixelSi|
|00001fc0| 7a 65 28 64 65 76 69 63 | 65 29 2c 28 69 6e 74 29 |ze(devic|e),(int)|
|00001fd0| 70 61 67 65 2c 62 61 73 | 65 41 64 64 72 29 3b 0d |page,bas|eAddr);.|
|00001fe0| 09 0d 09 09 44 72 61 77 | 50 72 69 6e 74 66 28 22 |....Draw|Printf("|
|00001ff0| 63 73 63 53 65 74 4d 6f | 64 65 3a 20 22 29 3b 0d |cscSetMo|de: ");.|
|00002000| 09 09 65 72 72 6f 72 3d | 47 44 53 65 74 4d 6f 64 |..error=|GDSetMod|
|00002010| 65 28 64 65 76 69 63 65 | 2c 6d 6f 64 65 2c 70 61 |e(device|,mode,pa|
|00002020| 67 65 2c 26 62 61 73 65 | 41 64 64 72 29 3b 0d 09 |ge,&base|Addr);..|
|00002030| 09 69 66 28 65 72 72 6f | 72 29 20 45 72 72 6f 72 |.if(erro|r) Error|
|00002040| 28 65 72 72 6f 72 29 3b | 0d 09 09 65 6c 73 65 20 |(error);|...else |
|00002050| 44 72 61 77 50 72 69 6e | 74 66 28 22 6f 6b 5c 6e |DrawPrin|tf("ok\n|
|00002060| 22 29 3b 0d 0d 09 09 2f | 2a 20 0d 09 09 09 47 44 |");..../|* ....GD|
|00002070| 53 65 74 4d 6f 64 65 20 | 68 61 73 20 74 68 65 20 |SetMode |has the |
|00002080| 61 6e 6e 6f 79 69 6e 67 | 20 73 69 64 65 20 65 66 |annoying| side ef|
|00002090| 66 65 63 74 20 6f 66 20 | 0d 09 09 09 73 65 74 74 |fect of |....sett|
|000020a0| 69 6e 67 20 74 68 65 20 | 63 6c 75 74 20 74 6f 20 |ing the |clut to |
|000020b0| 75 6e 69 66 6f 72 6d 20 | 67 72 61 79 2c 20 73 6f |uniform |gray, so|
|000020c0| 20 6c 65 74 27 73 20 72 | 65 73 74 6f 72 65 20 74 | let's r|estore t|
|000020d0| 68 65 20 63 6c 75 74 2e | 0d 09 09 2a 2f 0d 09 09 |he clut.|...*/...|
|000020e0| 47 44 52 65 73 74 6f 72 | 65 44 65 76 69 63 65 43 |GDRestor|eDeviceC|
|000020f0| 6c 75 74 28 64 65 76 69 | 63 65 29 3b 0d 0d 09 09 |lut(devi|ce);....|
|00002100| 66 6f 72 28 69 3d 30 78 | 38 30 3b 69 3c 3d 30 78 |for(i=0x|80;i<=0x|
|00002110| 38 35 3b 69 2b 2b 29 7b | 0d 09 09 09 70 69 78 65 |85;i++){|....pixe|
|00002120| 6c 53 69 7a 65 3d 47 44 | 4d 6f 64 65 50 69 78 65 |lSize=GD|ModePixe|
|00002130| 6c 53 69 7a 65 28 64 65 | 76 69 63 65 2c 69 29 3b |lSize(de|vice,i);|
|00002140| 0d 09 09 09 69 66 28 70 | 69 78 65 6c 53 69 7a 65 |....if(p|ixelSize|
|00002150| 3e 30 29 7b 0d 09 09 09 | 09 44 72 61 77 50 72 69 |>0){....|.DrawPri|
|00002160| 6e 74 66 28 22 63 73 63 | 47 65 74 50 61 67 65 43 |ntf("csc|GetPageC|
|00002170| 6e 74 3a 20 22 29 3b 0d | 09 09 09 09 65 72 72 6f |nt: ");.|....erro|
|00002180| 72 3d 47 44 47 65 74 50 | 61 67 65 43 6e 74 28 64 |r=GDGetP|ageCnt(d|
|00002190| 65 76 69 63 65 2c 69 2c | 26 70 61 67 65 73 29 3b |evice,i,|&pages);|
|000021a0| 0d 09 09 09 09 69 66 28 | 65 72 72 6f 72 29 44 72 |.....if(|error)Dr|
|000021b0| 61 77 50 72 69 6e 74 66 | 28 22 25 64 2d 62 69 74 |awPrintf|("%d-bit|
|000021c0| 20 6d 6f 64 65 20 6e 2f | 61 5c 6e 22 2c 28 69 6e | mode n/|a\n",(in|
|000021d0| 74 29 70 69 78 65 6c 53 | 69 7a 65 29 3b 0d 09 09 |t)pixelS|ize);...|
|000021e0| 09 09 65 6c 73 65 20 44 | 72 61 77 50 72 69 6e 74 |..else D|rawPrint|
|000021f0| 66 28 22 25 64 2d 62 69 | 74 20 6d 6f 64 65 20 68 |f("%d-bi|t mode h|
|00002200| 61 73 20 25 64 20 70 61 | 67 65 73 20 61 76 61 69 |as %d pa|ges avai|
|00002210| 6c 61 62 6c 65 5c 6e 22 | 2c 28 69 6e 74 29 70 69 |lable\n"|,(int)pi|
|00002220| 78 65 6c 53 69 7a 65 2c | 28 69 6e 74 29 70 61 67 |xelSize,|(int)pag|
|00002230| 65 73 29 3b 0d 09 09 09 | 7d 0d 09 09 7d 0d 0d 09 |es);....|}...}...|
|00002240| 09 44 72 61 77 50 72 69 | 6e 74 66 28 22 63 73 63 |.DrawPri|ntf("csc|
|00002250| 47 65 74 50 61 67 65 42 | 61 73 65 3a 20 22 29 3b |GetPageB|ase: ");|
|00002260| 0d 09 09 70 61 67 65 3d | 30 3b 09 2f 2a 20 41 73 |...page=|0;./* As|
|00002270| 6b 20 66 6f 72 20 66 69 | 72 73 74 20 70 61 67 65 |k for fi|rst page|
|00002280| 20 2a 2f 0d 09 09 65 72 | 72 6f 72 3d 47 44 47 65 | */...er|ror=GDGe|
|00002290| 74 50 61 67 65 42 61 73 | 65 28 64 65 76 69 63 65 |tPageBas|e(device|
|000022a0| 2c 70 61 67 65 2c 26 62 | 61 73 65 41 64 64 72 29 |,page,&b|aseAddr)|
|000022b0| 3b 0d 09 09 69 66 28 65 | 72 72 6f 72 29 20 45 72 |;...if(e|rror) Er|
|000022c0| 72 6f 72 28 65 72 72 6f | 72 29 3b 0d 09 09 65 6c |ror(erro|r);...el|
|000022d0| 73 65 20 44 72 61 77 50 | 72 69 6e 74 66 28 22 25 |se DrawP|rintf("%|
|000022e0| 64 2d 62 69 74 20 6d 6f | 64 65 2c 20 70 61 67 65 |d-bit mo|de, page|
|000022f0| 20 25 64 20 62 61 73 65 | 20 61 64 64 72 65 73 73 | %d base| address|
|00002300| 20 30 78 25 6c 58 5c 6e | 22 0d 09 09 09 2c 28 69 | 0x%lX\n|"....,(i|
|00002310| 6e 74 29 47 44 4d 6f 64 | 65 50 69 78 65 6c 53 69 |nt)GDMod|ePixelSi|
|00002320| 7a 65 28 64 65 76 69 63 | 65 2c 6d 6f 64 65 29 2c |ze(devic|e,mode),|
|00002330| 28 69 6e 74 29 70 61 67 | 65 2c 62 61 73 65 41 64 |(int)pag|e,baseAd|
|00002340| 64 72 29 3b 0d 09 09 69 | 66 28 70 61 67 65 73 3e |dr);...i|f(pages>|
|00002350| 31 29 7b 0d 09 09 09 44 | 72 61 77 50 72 69 6e 74 |1){....D|rawPrint|
|00002360| 66 28 22 63 73 63 47 65 | 74 50 61 67 65 42 61 73 |f("cscGe|tPageBas|
|00002370| 65 3a 20 22 29 3b 0d 09 | 09 09 70 61 67 65 3d 31 |e: ");..|..page=1|
|00002380| 3b 09 2f 2a 20 41 73 6b | 20 66 6f 72 20 73 65 63 |;./* Ask| for sec|
|00002390| 6f 6e 64 20 70 61 67 65 | 20 2a 2f 0d 09 09 09 65 |ond page| */....e|
|000023a0| 72 72 6f 72 3d 47 44 47 | 65 74 50 61 67 65 42 61 |rror=GDG|etPageBa|
|000023b0| 73 65 28 64 65 76 69 63 | 65 2c 70 61 67 65 2c 26 |se(devic|e,page,&|
|000023c0| 62 61 73 65 41 64 64 72 | 29 3b 0d 09 09 09 69 66 |baseAddr|);....if|
|000023d0| 28 65 72 72 6f 72 29 20 | 45 72 72 6f 72 28 65 72 |(error) |Error(er|
|000023e0| 72 6f 72 29 3b 0d 09 09 | 09 65 6c 73 65 20 44 72 |ror);...|.else Dr|
|000023f0| 61 77 50 72 69 6e 74 66 | 28 22 25 64 2d 62 69 74 |awPrintf|("%d-bit|
|00002400| 20 6d 6f 64 65 2c 20 70 | 61 67 65 20 25 64 20 62 | mode, p|age %d b|
|00002410| 61 73 65 20 61 64 64 72 | 65 73 73 20 30 78 25 6c |ase addr|ess 0x%l|
|00002420| 58 5c 6e 22 0d 09 09 09 | 09 2c 28 69 6e 74 29 47 |X\n"....|.,(int)G|
|00002430| 44 4d 6f 64 65 50 69 78 | 65 6c 53 69 7a 65 28 64 |DModePix|elSize(d|
|00002440| 65 76 69 63 65 2c 6d 6f | 64 65 29 2c 28 69 6e 74 |evice,mo|de),(int|
|00002450| 29 70 61 67 65 2c 62 61 | 73 65 41 64 64 72 29 3b |)page,ba|seAddr);|
|00002460| 0d 09 09 7d 0d 09 0d 09 | 09 44 72 61 77 50 72 69 |...}....|.DrawPri|
|00002470| 6e 74 66 28 22 63 73 63 | 47 65 74 47 72 61 79 3a |ntf("csc|GetGray:|
|00002480| 20 22 29 3b 0d 09 09 65 | 72 72 6f 72 3d 47 44 47 | ");...e|rror=GDG|
|00002490| 65 74 47 72 61 79 28 64 | 65 76 69 63 65 2c 26 66 |etGray(d|evice,&f|
|000024a0| 6c 61 67 29 3b 0d 09 09 | 69 66 28 65 72 72 6f 72 |lag);...|if(error|
|000024b0| 29 20 45 72 72 6f 72 28 | 65 72 72 6f 72 29 3b 0d |) Error(|error);.|
|000024c0| 09 09 65 6c 73 65 20 44 | 72 61 77 50 72 69 6e 74 |..else D|rawPrint|
|000024d0| 66 28 22 66 6c 61 67 20 | 25 64 5c 6e 22 2c 28 69 |f("flag |%d\n",(i|
|000024e0| 6e 74 29 66 6c 61 67 29 | 3b 0d 09 0d 09 09 44 72 |nt)flag)|;.....Dr|
|000024f0| 61 77 50 72 69 6e 74 66 | 28 22 63 73 63 53 65 74 |awPrintf|("cscSet|
|00002500| 47 72 61 79 3a 20 22 29 | 3b 0d 09 09 66 6c 61 67 |Gray: ")|;...flag|
|00002510| 3d 30 3b 0d 09 09 65 72 | 72 6f 72 3d 47 44 53 65 |=0;...er|ror=GDSe|
|00002520| 74 47 72 61 79 28 64 65 | 76 69 63 65 2c 66 6c 61 |tGray(de|vice,fla|
|00002530| 67 29 3b 0d 09 09 69 66 | 28 65 72 72 6f 72 29 20 |g);...if|(error) |
|00002540| 45 72 72 6f 72 28 65 72 | 72 6f 72 29 3b 0d 09 09 |Error(er|ror);...|
|00002550| 65 6c 73 65 20 44 72 61 | 77 50 72 69 6e 74 66 28 |else Dra|wPrintf(|
|00002560| 22 6f 6b 5c 6e 22 29 3b | 0d 09 0d 09 09 2f 2a 20 |"ok\n");|...../* |
|00002570| 47 65 74 49 6e 74 65 72 | 72 75 70 74 20 63 72 61 |GetInter|rupt cra|
|00002580| 73 68 65 73 20 74 68 65 | 20 4e 75 56 69 73 74 61 |shes the| NuVista|
|00002590| 20 64 72 69 76 65 72 2e | 20 20 2a 2f 0d 09 09 69 | driver.| */...i|
|000025a0| 66 28 21 45 71 75 61 6c | 53 74 72 69 6e 67 28 22 |f(!Equal|String("|
|000025b0| 5c 70 2e 44 69 73 70 6c | 61 79 5f 56 69 64 65 6f |\p.Displ|ay_Video|
|000025c0| 5f 4e 75 56 69 73 74 61 | 22 2c 47 44 4e 61 6d 65 |_NuVista|",GDName|
|000025d0| 28 64 65 76 69 63 65 29 | 2c 30 2c 30 29 29 7b 0d |(device)|,0,0)){.|
|000025e0| 09 09 09 2f 2a 20 53 65 | 74 49 6e 74 65 72 72 75 |.../* Se|tInterru|
|000025f0| 70 74 20 63 72 61 73 68 | 65 73 20 74 68 65 20 6f |pt crash|es the o|
|00002600| 6c 64 20 41 70 70 6c 65 | 20 64 72 69 76 65 72 2e |ld Apple| driver.|
|00002610| 20 20 2a 2f 0d 09 09 09 | 69 66 28 73 79 73 74 65 | */....|if(syste|
|00002620| 6d 56 65 72 73 69 6f 6e | 3e 3d 30 78 36 30 35 29 |mVersion|>=0x605)|
|00002630| 7b 0d 09 09 09 09 44 72 | 61 77 50 72 69 6e 74 66 |{.....Dr|awPrintf|
|00002640| 28 22 63 73 63 47 65 74 | 49 6e 74 65 72 72 75 70 |("cscGet|Interrup|
|00002650| 74 3a 20 22 29 3b 0d 09 | 09 09 09 65 72 72 6f 72 |t: ");..|...error|
|00002660| 3d 47 44 47 65 74 49 6e | 74 65 72 72 75 70 74 28 |=GDGetIn|terrupt(|
|00002670| 64 65 76 69 63 65 2c 26 | 66 6c 61 67 29 3b 0d 09 |device,&|flag);..|
|00002680| 09 09 09 69 66 28 65 72 | 72 6f 72 29 20 45 72 72 |...if(er|ror) Err|
|00002690| 6f 72 28 65 72 72 6f 72 | 29 3b 0d 09 09 09 09 65 |or(error|);.....e|
|000026a0| 6c 73 65 20 44 72 61 77 | 50 72 69 6e 74 66 28 22 |lse Draw|Printf("|
|000026b0| 25 64 5c 6e 22 2c 28 69 | 6e 74 29 66 6c 61 67 29 |%d\n",(i|nt)flag)|
|000026c0| 3b 0d 09 09 0d 09 09 09 | 09 69 66 28 30 29 7b 0d |;.......|.if(0){.|
|000026d0| 09 09 09 09 09 2f 2f 20 | 63 72 61 73 68 65 73 20 |.....// |crashes |
|000026e0| 62 75 69 6c 74 2d 69 6e | 20 76 69 64 65 6f 20 6f |built-in| video o|
|000026f0| 6e 20 50 6f 77 65 72 42 | 6f 6f 6b 20 31 36 30 0d |n PowerB|ook 160.|
|00002700| 09 09 09 09 09 44 72 61 | 77 50 72 69 6e 74 66 28 |.....Dra|wPrintf(|
|00002710| 22 63 73 63 53 65 74 49 | 6e 74 65 72 72 75 70 74 |"cscSetI|nterrupt|
|00002720| 3a 20 22 29 3b 0d 09 09 | 09 09 09 65 72 72 6f 72 |: ");...|...error|
|00002730| 3d 47 44 53 65 74 49 6e | 74 65 72 72 75 70 74 28 |=GDSetIn|terrupt(|
|00002740| 64 65 76 69 63 65 2c 66 | 6c 61 67 29 3b 0d 09 09 |device,f|lag);...|
|00002750| 09 09 09 69 66 28 65 72 | 72 6f 72 29 20 45 72 72 |...if(er|ror) Err|
|00002760| 6f 72 28 65 72 72 6f 72 | 29 3b 0d 09 09 09 09 09 |or(error|);......|
|00002770| 65 6c 73 65 20 44 72 61 | 77 50 72 69 6e 74 66 28 |else Dra|wPrintf(|
|00002780| 22 6f 6b 5c 6e 22 29 3b | 0d 09 09 09 09 7d 0d 09 |"ok\n");|.....}..|
|00002790| 09 09 7d 0d 09 09 09 65 | 6c 73 65 20 44 72 61 77 |..}....e|lse Draw|
|000027a0| 50 72 69 6e 74 66 28 22 | a5 a5 a5 a5 a5 53 6b 69 |Printf("|.....Ski|
|000027b0| 70 70 69 6e 67 20 47 65 | 74 49 6e 74 65 72 72 75 |pping Ge|tInterru|
|000027c0| 70 74 20 26 20 53 65 74 | 49 6e 74 65 72 72 75 70 |pt & Set|Interrup|
|000027d0| 74 2e 5c 6e 22 29 3b 0d | 09 09 7d 0d 09 09 65 6c |t.\n");.|..}...el|
|000027e0| 73 65 20 44 72 61 77 50 | 72 69 6e 74 66 28 22 a5 |se DrawP|rintf(".|
|000027f0| a5 a5 a5 a5 53 6b 69 70 | 70 69 6e 67 20 47 65 74 |....Skip|ping Get|
|00002800| 49 6e 74 65 72 72 75 70 | 74 20 26 20 53 65 74 49 |Interrup|t & SetI|
|00002810| 6e 74 65 72 72 75 70 74 | 20 74 6f 20 61 76 6f 69 |nterrupt| to avoi|
|00002820| 64 20 6b 6e 6f 77 6e 20 | 62 75 67 20 69 6e 20 25 |d known |bug in %|
|00002830| 73 2e 5c 6e 22 2c 47 44 | 43 61 72 64 4e 61 6d 65 |s.\n",GD|CardName|
|00002840| 28 64 65 76 69 63 65 29 | 29 3b 0d 0d 09 09 44 72 |(device)|);....Dr|
|00002850| 61 77 50 72 69 6e 74 66 | 28 22 63 73 63 47 65 74 |awPrintf|("cscGet|
|00002860| 47 61 6d 6d 61 3a 20 22 | 29 3b 0d 09 09 67 61 6d |Gamma: "|);...gam|
|00002870| 6d 61 3d 4e 55 4c 4c 3b | 0d 09 09 65 72 72 6f 72 |ma=NULL;|...error|
|00002880| 3d 47 44 47 65 74 47 61 | 6d 6d 61 28 64 65 76 69 |=GDGetGa|mma(devi|
|00002890| 63 65 2c 26 67 61 6d 6d | 61 29 3b 0d 09 09 69 66 |ce,&gamm|a);...if|
|000028a0| 28 65 72 72 6f 72 29 20 | 45 72 72 6f 72 28 65 72 |(error) |Error(er|
|000028b0| 72 6f 72 29 3b 0d 09 09 | 65 6c 73 65 20 47 61 6d |ror);...|else Gam|
|000028c0| 6d 61 52 65 70 6f 72 74 | 28 67 61 6d 6d 61 29 3b |maReport|(gamma);|
|000028d0| 0d 09 09 69 66 28 21 65 | 72 72 6f 72 20 26 26 20 |...if(!e|rror && |
|000028e0| 67 61 6d 6d 61 21 3d 4e | 55 4c 4c 29 67 61 6d 6d |gamma!=N|ULL)gamm|
|000028f0| 61 44 61 74 61 57 69 64 | 74 68 3d 67 61 6d 6d 61 |aDataWid|th=gamma|
|00002900| 2d 3e 67 44 61 74 61 57 | 69 64 74 68 3b 0d 09 09 |->gDataW|idth;...|
|00002910| 65 6c 73 65 20 67 61 6d | 6d 61 44 61 74 61 57 69 |else gam|maDataWi|
|00002920| 64 74 68 3d 30 3b 0d 09 | 09 0d 09 09 44 72 61 77 |dth=0;..|....Draw|
|00002930| 50 72 69 6e 74 66 28 22 | 63 73 63 53 65 74 47 61 |Printf("|cscSetGa|
|00002940| 6d 6d 61 3a 20 22 29 3b | 0d 09 09 69 66 28 67 61 |mma: ");|...if(ga|
|00002950| 6d 6d 61 3d 3d 4e 55 4c | 4c 20 7c 7c 20 67 61 6d |mma==NUL|L || gam|
|00002960| 6d 61 2d 3e 67 44 61 74 | 61 57 69 64 74 68 3d 3d |ma->gDat|aWidth==|
|00002970| 30 29 7b 0d 09 09 09 2f | 2f 20 47 65 74 20 74 68 |0){..../|/ Get th|
|00002980| 65 20 64 61 63 27 73 20 | 73 69 7a 65 20 66 72 6f |e dac's |size fro|
|00002990| 6d 20 74 68 65 20 63 75 | 72 72 65 6e 74 20 67 61 |m the cu|rrent ga|
|000029a0| 6d 6d 61 20 74 61 62 6c | 65 2e 0d 09 09 09 69 66 |mma tabl|e.....if|
|000029b0| 28 67 61 6d 6d 61 21 3d | 4e 55 4c 4c 20 26 26 20 |(gamma!=|NULL && |
|000029c0| 67 61 6d 6d 61 2d 3e 67 | 44 61 74 61 57 69 64 74 |gamma->g|DataWidt|
|000029d0| 68 21 3d 30 29 7b 0d 09 | 09 09 09 64 61 63 53 69 |h!=0){..|...dacSi|
|000029e0| 7a 65 3d 67 61 6d 6d 61 | 2d 3e 67 44 61 74 61 57 |ze=gamma|->gDataW|
|000029f0| 69 64 74 68 3b 0d 09 09 | 09 09 64 61 74 61 43 6e |idth;...|..dataCn|
|00002a00| 74 3d 67 61 6d 6d 61 2d | 3e 67 44 61 74 61 43 6e |t=gamma-|>gDataCn|
|00002a10| 74 3b 0d 09 09 09 7d 65 | 6c 73 65 7b 20 2f 2f 20 |t;....}e|lse{ // |
|00002a20| 54 68 65 20 64 72 69 76 | 65 72 20 77 6f 6e 27 74 |The driv|er won't|
|00002a30| 20 74 65 6c 6c 20 75 73 | 2c 20 73 6f 20 61 73 73 | tell us|, so ass|
|00002a40| 75 6d 65 20 38 2d 62 69 | 74 20 64 61 63 73 2e 0d |ume 8-bi|t dacs..|
|00002a50| 09 09 09 09 64 61 63 53 | 69 7a 65 3d 38 3b 0d 09 |....dacS|ize=8;..|
|00002a60| 09 09 09 64 61 74 61 43 | 6e 74 3d 31 4c 3c 3c 64 |...dataC|nt=1L<<d|
|00002a70| 61 63 53 69 7a 65 3b 0d | 09 09 09 7d 0d 09 09 09 |acSize;.|...}....|
|00002a80| 69 66 28 64 61 63 53 69 | 7a 65 3c 3d 38 29 64 61 |if(dacSi|ze<=8)da|
|00002a90| 74 61 53 69 7a 65 3d 31 | 3b 0d 09 09 09 65 6c 73 |taSize=1|;....els|
|00002aa0| 65 20 64 61 74 61 53 69 | 7a 65 3d 32 3b 0d 09 09 |e dataSi|ze=2;...|
|00002ab0| 09 6d 79 47 61 6d 6d 61 | 3d 28 47 61 6d 6d 61 54 |.myGamma|=(GammaT|
|00002ac0| 62 6c 20 2a 29 4e 65 77 | 50 74 72 28 73 69 7a 65 |bl *)New|Ptr(size|
|00002ad0| 6f 66 28 47 61 6d 6d 61 | 54 62 6c 29 2b 64 61 74 |of(Gamma|Tbl)+dat|
|00002ae0| 61 43 6e 74 2a 64 61 74 | 61 53 69 7a 65 29 3b 0d |aCnt*dat|aSize);.|
|00002af0| 09 09 09 61 73 73 65 72 | 74 28 6d 79 47 61 6d 6d |...asser|t(myGamm|
|00002b00| 61 21 3d 4e 55 4c 4c 29 | 3b 0d 09 09 09 6d 79 47 |a!=NULL)|;....myG|
|00002b10| 61 6d 6d 61 2d 3e 67 56 | 65 72 73 69 6f 6e 3d 30 |amma->gV|ersion=0|
|00002b20| 3b 0d 09 09 09 6d 79 47 | 61 6d 6d 61 2d 3e 67 54 |;....myG|amma->gT|
|00002b30| 79 70 65 3d 30 3b 0d 09 | 09 09 6d 79 47 61 6d 6d |ype=0;..|..myGamm|
|00002b40| 61 2d 3e 67 46 6f 72 6d | 75 6c 61 53 69 7a 65 3d |a->gForm|ulaSize=|
|00002b50| 30 3b 0d 09 09 09 6d 79 | 47 61 6d 6d 61 2d 3e 67 |0;....my|Gamma->g|
|00002b60| 43 68 61 6e 43 6e 74 3d | 31 3b 0d 09 09 09 6d 79 |ChanCnt=|1;....my|
|00002b70| 47 61 6d 6d 61 2d 3e 67 | 44 61 74 61 43 6e 74 3d |Gamma->g|DataCnt=|
|00002b80| 64 61 74 61 43 6e 74 3b | 0d 09 09 09 6d 79 47 61 |dataCnt;|....myGa|
|00002b90| 6d 6d 61 2d 3e 67 44 61 | 74 61 57 69 64 74 68 3d |mma->gDa|taWidth=|
|00002ba0| 64 61 63 53 69 7a 65 3b | 0d 09 09 09 62 79 74 65 |dacSize;|....byte|
|00002bb0| 3d 28 75 6e 73 69 67 6e | 65 64 20 63 68 61 72 20 |=(unsign|ed char |
|00002bc0| 2a 29 6d 79 47 61 6d 6d | 61 2d 3e 67 46 6f 72 6d |*)myGamm|a->gForm|
|00002bd0| 75 6c 61 44 61 74 61 2b | 6d 79 47 61 6d 6d 61 2d |ulaData+|myGamma-|
|00002be0| 3e 67 46 6f 72 6d 75 6c | 61 53 69 7a 65 3b 0d 09 |>gFormul|aSize;..|
|00002bf0| 09 09 77 6f 72 64 3d 28 | 75 6e 73 69 67 6e 65 64 |..word=(|unsigned|
|00002c00| 20 73 68 6f 72 74 20 2a | 29 62 79 74 65 3b 0d 09 | short *|)byte;..|
|00002c10| 09 09 69 66 28 6d 79 47 | 61 6d 6d 61 2d 3e 67 44 |..if(myG|amma->gD|
|00002c20| 61 74 61 57 69 64 74 68 | 3c 3d 38 29 0d 09 09 09 |ataWidth|<=8)....|
|00002c30| 09 66 6f 72 28 69 3d 30 | 3b 69 3c 6d 79 47 61 6d |.for(i=0|;i<myGam|
|00002c40| 6d 61 2d 3e 67 44 61 74 | 61 43 6e 74 3b 69 2b 2b |ma->gDat|aCnt;i++|
|00002c50| 29 20 62 79 74 65 5b 69 | 5d 3d 69 3b 0d 09 09 09 |) byte[i|]=i;....|
|00002c60| 65 6c 73 65 0d 09 09 09 | 09 66 6f 72 28 69 3d 30 |else....|.for(i=0|
|00002c70| 3b 69 3c 6d 79 47 61 6d | 6d 61 2d 3e 67 44 61 74 |;i<myGam|ma->gDat|
|00002c80| 61 43 6e 74 3b 69 2b 2b | 29 20 77 6f 72 64 5b 69 |aCnt;i++|) word[i|
|00002c90| 5d 3d 69 3b 0d 09 09 09 | 67 61 6d 6d 61 3d 6d 79 |]=i;....|gamma=my|
|00002ca0| 47 61 6d 6d 61 3b 0d 09 | 09 7d 65 6c 73 65 20 6d |Gamma;..|.}else m|
|00002cb0| 79 47 61 6d 6d 61 3d 4e | 55 4c 4c 3b 0d 09 09 65 |yGamma=N|ULL;...e|
|00002cc0| 72 72 6f 72 3d 47 44 53 | 65 74 47 61 6d 6d 61 28 |rror=GDS|etGamma(|
|00002cd0| 64 65 76 69 63 65 2c 67 | 61 6d 6d 61 29 3b 0d 09 |device,g|amma);..|
|00002ce0| 09 69 66 28 65 72 72 6f | 72 29 20 45 72 72 6f 72 |.if(erro|r) Error|
|00002cf0| 28 65 72 72 6f 72 29 3b | 0d 09 09 65 6c 73 65 20 |(error);|...else |
|00002d00| 44 72 61 77 50 72 69 6e | 74 66 28 22 6f 6b 2e 5c |DrawPrin|tf("ok.\|
|00002d10| 6e 22 29 3b 0d 09 09 69 | 66 28 6d 79 47 61 6d 6d |n");...i|f(myGamm|
|00002d20| 61 21 3d 4e 55 4c 4c 29 | 7b 0d 09 09 09 44 69 73 |a!=NULL)|{....Dis|
|00002d30| 70 6f 73 50 74 72 28 28 | 50 74 72 29 6d 79 47 61 |posPtr((|Ptr)myGa|
|00002d40| 6d 6d 61 29 3b 0d 09 09 | 09 6d 79 47 61 6d 6d 61 |mma);...|.myGamma|
|00002d50| 3d 4e 55 4c 4c 3b 0d 09 | 09 7d 0d 0d 09 44 72 61 |=NULL;..|.}...Dra|
|00002d60| 77 50 72 69 6e 74 66 28 | 22 63 73 63 47 65 74 47 |wPrintf(|"cscGetG|
|00002d70| 61 6d 6d 61 3a 20 22 29 | 3b 0d 09 67 61 6d 6d 61 |amma: ")|;..gamma|
|00002d80| 3d 4e 55 4c 4c 3b 0d 09 | 65 72 72 6f 72 3d 47 44 |=NULL;..|error=GD|
|00002d90| 47 65 74 47 61 6d 6d 61 | 28 64 65 76 69 63 65 2c |GetGamma|(device,|
|00002da0| 26 67 61 6d 6d 61 29 3b | 0d 09 69 66 28 65 72 72 |&gamma);|..if(err|
|00002db0| 6f 72 29 20 45 72 72 6f | 72 28 65 72 72 6f 72 29 |or) Erro|r(error)|
|00002dc0| 3b 0d 09 65 6c 73 65 20 | 47 61 6d 6d 61 52 65 70 |;..else |GammaRep|
|00002dd0| 6f 72 74 28 67 61 6d 6d | 61 29 3b 0d 09 69 66 28 |ort(gamm|a);..if(|
|00002de0| 21 65 72 72 6f 72 20 26 | 26 20 67 61 6d 6d 61 21 |!error &|& gamma!|
|00002df0| 3d 4e 55 4c 4c 29 67 61 | 6d 6d 61 44 61 74 61 57 |=NULL)ga|mmaDataW|
|00002e00| 69 64 74 68 3d 67 61 6d | 6d 61 2d 3e 67 44 61 74 |idth=gam|ma->gDat|
|00002e10| 61 57 69 64 74 68 3b 0d | 09 65 6c 73 65 20 67 61 |aWidth;.|.else ga|
|00002e20| 6d 6d 61 44 61 74 61 57 | 69 64 74 68 3d 30 3b 0d |mmaDataW|idth=0;.|
|00002e30| 09 0d 09 09 2f 2f 20 47 | 65 74 45 6e 74 72 69 65 |....// G|etEntrie|
|00002e40| 73 0d 09 09 73 74 61 72 | 74 3d 30 3b 0d 09 09 63 |s...star|t=0;...c|
|00002e50| 6f 75 6e 74 3d 47 44 43 | 6c 75 74 53 69 7a 65 28 |ount=GDC|lutSize(|
|00002e60| 64 65 76 69 63 65 29 2d | 31 3b 0d 09 09 69 66 28 |device)-|1;...if(|
|00002e70| 63 6f 75 6e 74 3e 73 69 | 7a 65 6f 66 28 6d 79 54 |count>si|zeof(myT|
|00002e80| 61 62 6c 65 29 2f 73 69 | 7a 65 6f 66 28 6d 79 54 |able)/si|zeof(myT|
|00002e90| 61 62 6c 65 5b 30 5d 29 | 2d 31 29 0d 09 09 09 63 |able[0])|-1)....c|
|00002ea0| 6f 75 6e 74 3d 73 69 7a | 65 6f 66 28 6d 79 54 61 |ount=siz|eof(myTa|
|00002eb0| 62 6c 65 29 2f 73 69 7a | 65 6f 66 28 6d 79 54 61 |ble)/siz|eof(myTa|
|00002ec0| 62 6c 65 5b 30 5d 29 2d | 31 3b 0d 09 09 44 72 61 |ble[0])-|1;...Dra|
|00002ed0| 77 50 72 69 6e 74 66 28 | 22 63 73 63 47 65 74 45 |wPrintf(|"cscGetE|
|00002ee0| 6e 74 72 69 65 73 3a 20 | 22 29 3b 0d 09 09 65 72 |ntries: |");...er|
|00002ef0| 72 6f 72 3d 47 44 47 65 | 74 45 6e 74 72 69 65 73 |ror=GDGe|tEntries|
|00002f00| 28 64 65 76 69 63 65 2c | 73 74 61 72 74 2c 63 6f |(device,|start,co|
|00002f10| 75 6e 74 2c 6d 79 54 61 | 62 6c 65 29 3b 0d 09 09 |unt,myTa|ble);...|
|00002f20| 69 66 28 65 72 72 6f 72 | 29 45 72 72 6f 72 28 65 |if(error|)Error(e|
|00002f30| 72 72 6f 72 29 3b 0d 09 | 09 65 6c 73 65 20 44 72 |rror);..|.else Dr|
|00002f40| 61 77 50 72 69 6e 74 66 | 28 22 6f 6b 5c 6e 22 29 |awPrintf|("ok\n")|
|00002f50| 3b 0d 09 09 0d 09 09 2f | 2f 20 53 65 74 45 6e 74 |;....../|/ SetEnt|
|00002f60| 72 69 65 73 0d 09 09 63 | 6f 75 6e 74 3d 47 44 43 |ries...c|ount=GDC|
|00002f70| 6c 75 74 53 69 7a 65 28 | 64 65 76 69 63 65 29 2d |lutSize(|device)-|
|00002f80| 31 3b 0d 09 09 73 77 69 | 74 63 68 28 28 2a 64 65 |1;...swi|tch((*de|
|00002f90| 76 69 63 65 29 2d 3e 67 | 64 54 79 70 65 29 7b 0d |vice)->g|dType){.|
|00002fa0| 09 09 09 63 61 73 65 20 | 63 6c 75 74 54 79 70 65 |...case |clutType|
|00002fb0| 3a 0d 09 09 09 09 44 72 | 61 77 50 72 69 6e 74 66 |:.....Dr|awPrintf|
|00002fc0| 28 22 63 73 63 53 65 74 | 45 6e 74 72 69 65 73 3a |("cscSet|Entries:|
|00002fd0| 20 22 29 3b 0d 09 09 09 | 09 65 72 72 6f 72 3d 47 | ");....|.error=G|
|00002fe0| 44 53 65 74 45 6e 74 72 | 69 65 73 28 64 65 76 69 |DSetEntr|ies(devi|
|00002ff0| 63 65 2c 30 2c 63 6f 75 | 6e 74 2c 28 28 2a 2a 28 |ce,0,cou|nt,((**(|
|00003000| 2a 2a 28 2a 2a 64 65 76 | 69 63 65 29 2e 67 64 50 |**(**dev|ice).gdP|
|00003010| 4d 61 70 29 2e 70 6d 54 | 61 62 6c 65 29 29 2e 63 |Map).pmT|able)).c|
|00003020| 74 54 61 62 6c 65 29 3b | 0d 09 09 09 09 69 66 28 |tTable);|.....if(|
|00003030| 65 72 72 6f 72 29 45 72 | 72 6f 72 28 65 72 72 6f |error)Er|ror(erro|
|00003040| 72 29 3b 0d 09 09 09 09 | 65 6c 73 65 20 44 72 61 |r);.....|else Dra|
|00003050| 77 50 72 69 6e 74 66 28 | 22 6f 6b 5c 6e 22 29 3b |wPrintf(|"ok\n");|
|00003060| 0d 09 09 09 09 62 72 65 | 61 6b 3b 0d 09 09 09 63 |.....bre|ak;....c|
|00003070| 61 73 65 20 64 69 72 65 | 63 74 54 79 70 65 3a 0d |ase dire|ctType:.|
|00003080| 09 09 09 09 44 72 61 77 | 50 72 69 6e 74 66 28 22 |....Draw|Printf("|
|00003090| 44 69 72 65 63 74 53 65 | 74 45 6e 74 72 69 65 73 |DirectSe|tEntries|
|000030a0| 3a 20 22 29 3b 0d 09 09 | 09 09 65 72 72 6f 72 3d |: ");...|..error=|
|000030b0| 47 44 44 69 72 65 63 74 | 53 65 74 45 6e 74 72 69 |GDDirect|SetEntri|
|000030c0| 65 73 28 64 65 76 69 63 | 65 2c 30 2c 30 2c 26 62 |es(devic|e,0,0,&b|
|000030d0| 6c 61 63 6b 29 3b 0d 09 | 09 09 09 69 66 28 65 72 |lack);..|...if(er|
|000030e0| 72 6f 72 29 45 72 72 6f | 72 28 65 72 72 6f 72 29 |ror)Erro|r(error)|
|000030f0| 3b 0d 09 09 09 09 65 6c | 73 65 20 44 72 61 77 50 |;.....el|se DrawP|
|00003100| 72 69 6e 74 66 28 22 6f | 6b 5c 6e 22 29 3b 0d 09 |rintf("o|k\n");..|
|00003110| 09 09 09 62 72 65 61 6b | 3b 0d 09 09 09 63 61 73 |...break|;....cas|
|00003120| 65 20 66 69 78 65 64 54 | 79 70 65 3a 0d 09 09 09 |e fixedT|ype:....|
|00003130| 09 44 72 61 77 50 72 69 | 6e 74 66 28 22 41 20 66 |.DrawPri|ntf("A f|
|00003140| 69 78 65 64 54 79 70 65 | 20 63 6c 75 74 20 63 61 |ixedType| clut ca|
|00003150| 6e 6e 6f 74 20 62 65 20 | 6d 6f 64 69 66 69 65 64 |nnot be |modified|
|00003160| 2e 5c 6e 22 29 3b 0d 09 | 09 09 09 62 72 65 61 6b |.\n");..|...break|
|00003170| 3b 0d 09 09 7d 0d 09 09 | 0d 09 09 2f 2f 20 4d 69 |;...}...|...// Mi|
|00003180| 73 63 65 6c 6c 61 6e 65 | 6f 75 73 0d 09 09 63 6c |scellane|ous...cl|
|00003190| 75 74 53 69 7a 65 3d 47 | 44 43 6c 75 74 53 69 7a |utSize=G|DClutSiz|
|000031a0| 65 28 64 65 76 69 63 65 | 29 3b 0d 09 09 70 69 78 |e(device|);...pix|
|000031b0| 65 6c 53 69 7a 65 3d 31 | 3c 3c 28 6d 6f 64 65 26 |elSize=1|<<(mode&|
|000031c0| 37 29 3b 0d 09 09 74 79 | 70 65 3d 28 2a 64 65 76 |7);...ty|pe=(*dev|
|000031d0| 69 63 65 29 2d 3e 67 64 | 54 79 70 65 3b 0d 09 09 |ice)->gd|Type;...|
|000031e0| 44 72 61 77 50 72 69 6e | 74 66 28 22 43 75 72 72 |DrawPrin|tf("Curr|
|000031f0| 65 6e 74 6c 79 20 69 6e | 20 6d 6f 64 65 20 25 64 |ently in| mode %d|
|00003200| 2c 20 70 69 78 65 6c 53 | 69 7a 65 20 25 64 20 62 |, pixelS|ize %d b|
|00003210| 69 74 73 2c 20 63 6c 75 | 74 53 69 7a 65 20 25 64 |its, clu|tSize %d|
|00003220| 20 65 6e 74 72 69 65 73 | 2c 20 25 73 22 0d 09 09 | entries|, %s"...|
|00003230| 09 2c 28 69 6e 74 29 6d | 6f 64 65 2c 28 69 6e 74 |.,(int)m|ode,(int|
|00003240| 29 70 69 78 65 6c 53 69 | 7a 65 2c 28 69 6e 74 29 |)pixelSi|ze,(int)|
|00003250| 63 6c 75 74 53 69 7a 65 | 2c 74 79 70 65 4e 61 6d |clutSize|,typeNam|
|00003260| 65 5b 74 79 70 65 5d 29 | 3b 0d 09 09 69 66 28 67 |e[type])|;...if(g|
|00003270| 61 6d 6d 61 44 61 74 61 | 57 69 64 74 68 21 3d 30 |ammaData|Width!=0|
|00003280| 29 44 72 61 77 50 72 69 | 6e 74 66 28 22 2c 20 64 |)DrawPri|ntf(", d|
|00003290| 61 63 53 69 7a 65 20 25 | 64 20 62 69 74 73 22 2c |acSize %|d bits",|
|000032a0| 28 69 6e 74 29 67 61 6d | 6d 61 44 61 74 61 57 69 |(int)gam|maDataWi|
|000032b0| 64 74 68 29 3b 0d 09 09 | 44 72 61 77 50 72 69 6e |dth);...|DrawPrin|
|000032c0| 74 66 28 22 2e 5c 6e 22 | 29 3b 0d 0d 09 09 54 65 |tf(".\n"|);....Te|
|000032d0| 78 74 46 61 63 65 28 62 | 6f 6c 64 29 3b 0d 09 09 |xtFace(b|old);...|
|000032e0| 66 3d 47 44 46 72 61 6d | 65 52 61 74 65 28 64 65 |f=GDFram|eRate(de|
|000032f0| 76 69 63 65 29 3b 0d 09 | 09 44 72 61 77 50 72 69 |vice);..|.DrawPri|
|00003300| 6e 74 66 28 22 25 2e 31 | 66 20 48 7a 20 66 72 61 |ntf("%.1|f Hz fra|
|00003310| 6d 65 20 72 61 74 65 20 | 28 25 2e 31 66 20 6d 73 |me rate |(%.1f ms|
|00003320| 29 2e 5c 6e 22 2c 66 2c | 31 30 30 30 2e 30 2f 66 |).\n",f,|1000.0/f|
|00003330| 29 3b 0d 09 09 69 66 28 | 28 2a 64 65 76 69 63 65 |);...if(|(*device|
|00003340| 29 2d 3e 67 64 54 79 70 | 65 21 3d 66 69 78 65 64 |)->gdTyp|e!=fixed|
|00003350| 54 79 70 65 29 7b 0d 09 | 09 09 69 66 28 28 2a 64 |Type){..|..if((*d|
|00003360| 65 76 69 63 65 29 2d 3e | 67 64 54 79 70 65 3d 3d |evice)->|gdType==|
|00003370| 63 6c 75 74 54 79 70 65 | 29 6e 61 6d 65 3d 22 63 |clutType|)name="c|
|00003380| 73 63 53 65 74 45 6e 74 | 72 69 65 73 22 3b 0d 09 |scSetEnt|ries";..|
|00003390| 09 09 65 6c 73 65 20 6e | 61 6d 65 3d 22 63 73 63 |..else n|ame="csc|
|000033a0| 44 69 72 65 63 74 53 65 | 74 45 6e 74 72 69 65 73 |DirectSe|tEntries|
|000033b0| 22 3b 0d 09 09 09 65 72 | 72 6f 72 3d 47 44 54 69 |";....er|ror=GDTi|
|000033c0| 6d 65 43 6c 75 74 28 64 | 65 76 69 63 65 2c 47 44 |meClut(d|evice,GD|
|000033d0| 53 65 74 45 6e 74 72 69 | 65 73 2c 30 0d 09 09 09 |SetEntri|es,0....|
|000033e0| 09 2c 26 73 2c 26 66 72 | 61 6d 65 73 2c 26 6d 69 |.,&s,&fr|ames,&mi|
|000033f0| 73 73 69 6e 67 46 72 61 | 6d 65 73 2c 26 66 72 61 |ssingFra|mes,&fra|
|00003400| 6d 65 52 61 74 65 29 3b | 0d 09 09 09 44 72 61 77 |meRate);|....Draw|
|00003410| 50 72 69 6e 74 66 28 22 | 52 65 70 65 61 74 65 64 |Printf("|Repeated|
|00003420| 6c 79 20 6c 6f 61 64 69 | 6e 67 20 74 68 65 20 63 |ly loadi|ng the c|
|00003430| 6c 75 74 2c 20 62 79 20 | 63 61 6c 6c 69 6e 67 20 |lut, by |calling |
|00003440| 25 73 28 29 2c 20 22 0d | 09 09 09 09 22 74 61 6b |%s(), ".|...."tak|
|00003450| 65 73 20 25 2e 32 66 20 | 66 72 61 6d 65 20 65 61 |es %.2f |frame ea|
|00003460| 63 68 20 74 69 6d 65 2e | 5c 6e 22 2c 6e 61 6d 65 |ch time.|\n",name|
|00003470| 2c 66 72 61 6d 65 73 29 | 3b 0d 09 09 09 44 72 61 |,frames)|;....Dra|
|00003480| 77 50 72 69 6e 74 66 28 | 22 25 2e 31 66 20 48 7a |wPrintf(|"%.1f Hz|
|00003490| 20 63 6c 75 74 20 75 70 | 64 61 74 65 20 72 61 74 | clut up|date rat|
|000034a0| 65 20 28 25 2e 31 66 20 | 6d 73 29 2e 5c 6e 22 2c |e (%.1f |ms).\n",|
|000034b0| 31 2e 30 2f 73 2c 31 30 | 30 30 2e 30 2a 73 29 3b |1.0/s,10|00.0*s);|
|000034c0| 0d 09 09 7d 0d 09 09 54 | 65 78 74 46 61 63 65 28 |...}...T|extFace(|
|000034d0| 30 29 3b 0d 09 09 0d 09 | 09 69 66 28 30 29 7b 0d |0);.....|.if(0){.|
|000034e0| 09 09 09 2f 2a 20 49 20 | 68 61 76 65 6e 27 74 20 |.../* I |haven't |
|000034f0| 66 6f 75 6e 64 20 61 6e | 79 20 75 73 65 20 66 6f |found an|y use fo|
|00003500| 72 20 74 68 65 73 65 20 | 63 61 6c 6c 73 2c 20 73 |r these |calls, s|
|00003510| 6f 20 73 6b 69 70 20 27 | 65 6d 20 2a 2f 0d 09 09 |o skip '|em */...|
|00003520| 09 44 72 61 77 50 72 69 | 6e 74 66 28 22 63 73 63 |.DrawPri|ntf("csc|
|00003530| 47 65 74 44 65 66 61 75 | 6c 74 4d 6f 64 65 3a 20 |GetDefau|ltMode: |
|00003540| 22 29 3b 0d 09 09 09 65 | 72 72 6f 72 3d 47 44 47 |");....e|rror=GDG|
|00003550| 65 74 44 65 66 61 75 6c | 74 4d 6f 64 65 28 64 65 |etDefaul|tMode(de|
|00003560| 76 69 63 65 2c 26 6d 6f | 64 65 29 3b 0d 09 09 09 |vice,&mo|de);....|
|00003570| 69 66 28 65 72 72 6f 72 | 29 20 45 72 72 6f 72 28 |if(error|) Error(|
|00003580| 65 72 72 6f 72 29 3b 0d | 09 09 09 65 6c 73 65 20 |error);.|...else |
|00003590| 44 72 61 77 50 72 69 6e | 74 66 28 22 30 78 25 58 |DrawPrin|tf("0x%X|
|000035a0| 5c 6e 22 2c 6d 6f 64 65 | 29 3b 0d 09 09 0d 09 09 |\n",mode|);......|
|000035b0| 09 44 72 61 77 50 72 69 | 6e 74 66 28 22 63 73 63 |.DrawPri|ntf("csc|
|000035c0| 53 65 74 44 65 66 61 75 | 6c 74 4d 6f 64 65 3a 20 |SetDefau|ltMode: |
|000035d0| 22 29 3b 0d 09 09 09 65 | 72 72 6f 72 3d 47 44 53 |");....e|rror=GDS|
|000035e0| 65 74 44 65 66 61 75 6c | 74 4d 6f 64 65 28 64 65 |etDefaul|tMode(de|
|000035f0| 76 69 63 65 2c 6d 6f 64 | 65 29 3b 0d 09 09 09 69 |vice,mod|e);....i|
|00003600| 66 28 65 72 72 6f 72 29 | 20 45 72 72 6f 72 28 65 |f(error)| Error(e|
|00003610| 72 72 6f 72 29 3b 0d 09 | 09 09 65 6c 73 65 20 44 |rror);..|..else D|
|00003620| 72 61 77 50 72 69 6e 74 | 66 28 22 6f 6b 5c 6e 22 |rawPrint|f("ok\n"|
|00003630| 29 3b 0d 09 09 7d 0d 09 | 09 69 66 28 70 61 74 63 |);...}..|.if(patc|
|00003640| 68 20 26 26 20 45 71 75 | 61 6c 53 74 72 69 6e 67 |h && Equ|alString|
|00003650| 28 22 5c 70 2e 44 69 73 | 70 6c 61 79 5f 56 69 64 |("\p.Dis|play_Vid|
|00003660| 65 6f 5f 41 70 70 6c 65 | 5f 52 42 56 31 22 2c 47 |eo_Apple|_RBV1",G|
|00003670| 44 4e 61 6d 65 28 64 65 | 76 69 63 65 29 2c 54 52 |DName(de|vice),TR|
|00003680| 55 45 2c 46 41 4c 53 45 | 29 29 0d 09 09 09 44 72 |UE,FALSE|))....Dr|
|00003690| 61 77 50 72 69 6e 74 66 | 28 0d 09 09 09 22 54 68 |awPrintf|(...."Th|
|000036a0| 69 73 20 4d 61 63 20 49 | 49 63 69 20 76 69 64 65 |is Mac I|Ici vide|
|000036b0| 6f 20 64 72 69 76 65 72 | 20 68 61 73 20 62 65 65 |o driver| has bee|
|000036c0| 6e 20 70 61 74 63 68 65 | 64 20 28 75 6e 74 69 6c |n patche|d (until|
|000036d0| 20 72 65 62 6f 6f 74 29 | 20 74 6f 20 66 69 78 20 | reboot)| to fix |
|000036e0| 61 20 62 75 67 5c 6e 22 | 0d 09 09 09 22 74 68 61 |a bug\n"|...."tha|
|000036f0| 74 20 70 72 65 76 65 6e | 74 73 20 72 65 61 64 69 |t preven|ts readi|
|00003700| 6e 67 20 74 68 65 20 63 | 6c 75 74 2e 20 54 68 65 |ng the c|lut. The|
|00003710| 20 76 65 72 73 69 6f 6e | 20 6e 75 6d 62 65 72 20 | version| number |
|00003720| 77 61 73 20 63 68 61 6e | 67 65 64 20 66 72 6f 6d |was chan|ged from|
|00003730| 20 30 20 74 6f 20 25 64 | 2e 5c 6e 22 0d 09 09 09 | 0 to %d|.\n"....|
|00003740| 2c 28 69 6e 74 29 47 44 | 56 65 72 73 69 6f 6e 28 |,(int)GD|Version(|
|00003750| 64 65 76 69 63 65 29 29 | 3b 0d 09 7d 0d 09 53 65 |device))|;..}..Se|
|00003760| 6c 65 63 74 57 69 6e 64 | 6f 77 28 77 69 6e 64 6f |lectWind|ow(windo|
|00003770| 77 5b 30 5d 29 3b 0d 09 | 53 65 74 50 6f 72 74 28 |w[0]);..|SetPort(|
|00003780| 77 69 6e 64 6f 77 5b 30 | 5d 29 3b 0d 09 44 72 61 |window[0|]);..Dra|
|00003790| 77 50 72 69 6e 74 66 28 | 0d 09 09 22 54 68 69 73 |wPrintf(|..."This|
|000037a0| 20 63 6f 6d 70 6c 65 74 | 65 73 20 74 68 65 20 74 | complet|es the t|
|000037b0| 65 73 74 20 6f 66 20 74 | 68 65 20 6b 6e 6f 77 6e |est of t|he known|
|000037c0| 20 43 6f 6e 74 72 6f 6c | 20 61 6e 64 20 53 74 61 | Control| and Sta|
|000037d0| 74 75 73 20 63 61 6c 6c | 73 20 66 6f 72 20 65 61 |tus call|s for ea|
|000037e0| 63 68 5c 6e 22 0d 09 09 | 22 6f 66 20 79 6f 75 72 |ch\n"...|"of your|
|000037f0| 20 76 69 64 65 6f 20 64 | 65 76 69 63 65 73 2e 20 | video d|evices. |
|00003800| 46 6f 72 20 61 6e 20 65 | 78 70 6c 61 6e 61 74 69 |For an e|xplanati|
|00003810| 6f 6e 20 6f 66 20 77 68 | 61 74 20 74 68 65 73 65 |on of wh|at these|
|00003820| 20 63 61 6c 6c 73 20 64 | 6f 2c 20 73 65 65 5c 6e | calls d|o, see\n|
|00003830| 22 0d 09 09 22 41 70 70 | 6c 65 d5 73 20 62 6f 6f |"..."App|le.s boo|
|00003840| 6b 20 22 29 3b 0d 09 54 | 65 78 74 46 61 63 65 28 |k ");..T|extFace(|
|00003850| 69 74 61 6c 69 63 29 3b | 0d 09 44 72 61 77 50 72 |italic);|..DrawPr|
|00003860| 69 6e 74 66 28 22 44 65 | 73 69 67 6e 69 6e 67 20 |intf("De|signing |
|00003870| 43 61 72 64 73 20 61 6e | 64 20 44 72 69 76 65 72 |Cards an|d Driver|
|00003880| 73 2c 22 29 3b 0d 09 54 | 65 78 74 46 61 63 65 28 |s,");..T|extFace(|
|00003890| 30 29 3b 0d 09 44 72 61 | 77 50 72 69 6e 74 66 28 |0);..Dra|wPrintf(|
|000038a0| 22 20 33 72 64 20 45 64 | 2e 2c 20 41 64 64 69 73 |" 3rd Ed|., Addis|
|000038b0| 6f 6e 20 57 65 73 6c 65 | 79 2c 20 43 68 61 70 74 |on Wesle|y, Chapt|
|000038c0| 65 72 20 39 2e 5c 6e 22 | 29 3b 0d 09 54 65 78 74 |er 9.\n"|);..Text|
|000038d0| 46 61 63 65 28 62 6f 6c | 64 29 3b 0d 09 44 72 61 |Face(bol|d);..Dra|
|000038e0| 77 50 72 69 6e 74 66 28 | 22 51 75 69 74 20 62 79 |wPrintf(|"Quit by|
|000038f0| 20 63 6c 6f 73 69 6e 67 | 20 61 6e 79 20 77 69 6e | closing| any win|
|00003900| 64 6f 77 2c 20 6f 72 20 | 68 69 74 74 69 6e 67 20 |dow, or |hitting |
|00003910| 43 6f 6d 6d 61 6e 64 2d | 2e 5c 6e 22 29 3b 0d 09 |Command-|.\n");..|
|00003920| 64 6f 7b 0d 09 09 6b 65 | 65 70 57 61 69 74 69 6e |do{...ke|epWaitin|
|00003930| 67 3d 31 3b 0d 09 09 77 | 68 69 6c 65 28 21 47 65 |g=1;...w|hile(!Ge|
|00003940| 74 4e 65 78 74 45 76 65 | 6e 74 28 6d 44 6f 77 6e |tNextEve|nt(mDown|
|00003950| 4d 61 73 6b 2b 6b 65 79 | 44 6f 77 6e 4d 61 73 6b |Mask+key|DownMask|
|00003960| 2c 26 65 76 65 6e 74 29 | 29 20 3b 0d 09 09 73 77 |,&event)|) ;...sw|
|00003970| 69 74 63 68 28 65 76 65 | 6e 74 2e 77 68 61 74 29 |itch(eve|nt.what)|
|00003980| 7b 0d 09 09 63 61 73 65 | 20 6d 6f 75 73 65 44 6f |{...case| mouseDo|
|00003990| 77 6e 3a 0d 09 09 09 77 | 68 65 72 65 3d 46 69 6e |wn:....w|here=Fin|
|000039a0| 64 57 69 6e 64 6f 77 28 | 65 76 65 6e 74 2e 77 68 |dWindow(|event.wh|
|000039b0| 65 72 65 2c 26 74 68 65 | 57 69 6e 64 6f 77 29 3b |ere,&the|Window);|
|000039c0| 0d 09 09 09 73 77 69 74 | 63 68 28 77 68 65 72 65 |....swit|ch(where|
|000039d0| 29 7b 0d 09 09 09 63 61 | 73 65 20 69 6e 43 6f 6e |){....ca|se inCon|
|000039e0| 74 65 6e 74 3a 0d 09 09 | 09 63 61 73 65 20 69 6e |tent:...|.case in|
|000039f0| 44 72 61 67 3a 0d 09 09 | 09 63 61 73 65 20 69 6e |Drag:...|.case in|
|00003a00| 47 72 6f 77 3a 0d 09 09 | 09 63 61 73 65 20 69 6e |Grow:...|.case in|
|00003a10| 47 6f 41 77 61 79 3a 0d | 09 09 09 09 53 65 6c 65 |GoAway:.|....Sele|
|00003a20| 63 74 57 69 6e 64 6f 77 | 28 74 68 65 57 69 6e 64 |ctWindow|(theWind|
|00003a30| 6f 77 29 3b 0d 09 09 09 | 7d 0d 09 09 09 69 66 28 |ow);....|}....if(|
|00003a40| 77 68 65 72 65 3d 3d 69 | 6e 47 6f 41 77 61 79 29 |where==i|nGoAway)|
|00003a50| 20 6b 65 65 70 57 61 69 | 74 69 6e 67 20 3d 20 21 | keepWai|ting = !|
|00003a60| 54 72 61 63 6b 47 6f 41 | 77 61 79 28 74 68 65 57 |TrackGoA|way(theW|
|00003a70| 69 6e 64 6f 77 2c 65 76 | 65 6e 74 2e 77 68 65 72 |indow,ev|ent.wher|
|00003a80| 65 29 3b 0d 09 09 09 62 | 72 65 61 6b 3b 0d 09 09 |e);....b|reak;...|
|00003a90| 63 61 73 65 20 6b 65 79 | 44 6f 77 6e 3a 0d 09 09 |case key|Down:...|
|00003aa0| 09 69 66 28 65 76 65 6e | 74 2e 6d 6f 64 69 66 69 |.if(even|t.modifi|
|00003ab0| 65 72 73 20 26 20 63 6d | 64 4b 65 79 29 20 73 77 |ers & cm|dKey) sw|
|00003ac0| 69 74 63 68 28 65 76 65 | 6e 74 2e 6d 65 73 73 61 |itch(eve|nt.messa|
|00003ad0| 67 65 20 26 20 63 68 61 | 72 43 6f 64 65 4d 61 73 |ge & cha|rCodeMas|
|00003ae0| 6b 29 20 7b 0d 09 09 09 | 09 63 61 73 65 20 27 2e |k) {....|.case '.|
|00003af0| 27 3a 0d 09 09 09 09 63 | 61 73 65 20 27 77 27 3a |':.....c|ase 'w':|
|00003b00| 0d 09 09 09 09 6b 65 65 | 70 57 61 69 74 69 6e 67 |.....kee|pWaiting|
|00003b10| 3d 30 3b 0d 09 09 09 7d | 0d 09 09 09 62 72 65 61 |=0;....}|....brea|
|00003b20| 6b 3b 0d 09 09 7d 0d 09 | 7d 20 77 68 69 6c 65 20 |k;...}..|} while |
|00003b30| 28 6b 65 65 70 57 61 69 | 74 69 6e 67 29 3b 0d 09 |(keepWai|ting);..|
|00003b40| 53 65 74 50 6f 72 74 28 | 6f 6c 64 50 6f 72 74 29 |SetPort(|oldPort)|
|00003b50| 3b 0d 09 66 6f 72 28 69 | 3d 30 3b 69 3c 73 63 72 |;..for(i|=0;i<scr|
|00003b60| 65 65 6e 3b 69 2b 2b 29 | 44 69 73 70 6f 73 65 57 |een;i++)|DisposeW|
|00003b70| 69 6e 64 6f 77 28 77 69 | 6e 64 6f 77 5b 69 5d 29 |indow(wi|ndow[i])|
|00003b80| 3b 0d 09 5f 65 78 69 74 | 28 30 29 3b 0d 7d 0d 0d |;.._exit|(0);.}..|
|00003b90| 76 6f 69 64 20 47 61 6d | 6d 61 52 65 70 6f 72 74 |void Gam|maReport|
|00003ba0| 28 47 61 6d 6d 61 54 62 | 6c 20 2a 67 61 6d 6d 61 |(GammaTb|l *gamma|
|00003bb0| 29 0d 7b 0d 09 73 68 6f | 72 74 20 69 2c 6a 2c 6e |).{..sho|rt i,j,n|
|00003bc0| 65 77 46 6f 6e 74 4e 75 | 6d 62 65 72 2c 66 6f 6e |ewFontNu|mber,fon|
|00003bd0| 74 4e 75 6d 62 65 72 2c | 74 65 78 74 53 69 7a 65 |tNumber,|textSize|
|00003be0| 3b 0d 09 75 6e 73 69 67 | 6e 65 64 20 63 68 61 72 |;..unsig|ned char|
|00003bf0| 20 2a 62 79 74 65 3b 0d | 09 75 6e 73 69 67 6e 65 | *byte;.|.unsigne|
|00003c00| 64 20 73 68 6f 72 74 20 | 2a 77 6f 72 64 3b 0d 09 |d short |*word;..|
|00003c10| 57 69 6e 64 6f 77 50 74 | 72 20 77 69 6e 64 6f 77 |WindowPt|r window|
|00003c20| 3b 0d 0d 09 69 66 28 67 | 61 6d 6d 61 3d 3d 4e 55 |;...if(g|amma==NU|
|00003c30| 4c 4c 29 44 72 61 77 50 | 72 69 6e 74 66 28 22 65 |LL)DrawP|rintf("e|
|00003c40| 72 72 6f 72 2d 2d 4e 55 | 4c 4c 20 67 61 6d 6d 61 |rror--NU|LL gamma|
|00003c50| 20 74 61 62 6c 65 20 70 | 6f 69 6e 74 65 72 5c 6e | table p|ointer\n|
|00003c60| 22 29 3b 0d 09 65 6c 73 | 65 7b 0d 09 09 44 72 61 |");..els|e{...Dra|
|00003c70| 77 50 72 69 6e 74 66 28 | 22 67 61 6d 6d 61 20 74 |wPrintf(|"gamma t|
|00003c80| 61 62 6c 65 20 40 25 6c | 78 20 69 6e 64 69 63 61 |able @%l|x indica|
|00003c90| 74 65 73 20 74 68 61 74 | 20 74 68 65 20 76 69 64 |tes that| the vid|
|00003ca0| 65 6f 20 63 61 72 64 20 | 68 61 73 20 25 64 2d 62 |eo card |has %d-b|
|00003cb0| 69 74 20 64 61 63 73 2c | 20 22 0d 09 09 22 61 6e |it dacs,| "..."an|
|00003cc0| 64 20 25 64 20 65 6e 74 | 72 69 65 73 20 69 6e 20 |d %d ent|ries in |
|00003cd0| 69 74 73 20 63 6c 75 74 | 2e 5c 6e 22 0d 09 09 2c |its clut|.\n"...,|
|00003ce0| 67 61 6d 6d 61 2c 28 69 | 6e 74 29 67 61 6d 6d 61 |gamma,(i|nt)gamma|
|00003cf0| 2d 3e 67 44 61 74 61 57 | 69 64 74 68 2c 28 69 6e |->gDataW|idth,(in|
|00003d00| 74 29 67 61 6d 6d 61 2d | 3e 67 44 61 74 61 43 6e |t)gamma-|>gDataCn|
|00003d10| 74 29 3b 0d 09 09 44 72 | 61 77 50 72 69 6e 74 66 |t);...Dr|awPrintf|
|00003d20| 28 22 67 56 65 72 73 69 | 6f 6e 20 25 64 2c 20 67 |("gVersi|on %d, g|
|00003d30| 54 79 70 65 20 25 64 2c | 20 67 46 6f 72 6d 75 6c |Type %d,| gFormul|
|00003d40| 61 53 69 7a 65 20 25 64 | 2c 20 67 43 68 61 6e 43 |aSize %d|, gChanC|
|00003d50| 6e 74 20 25 64 5c 6e 22 | 0d 09 09 2c 28 69 6e 74 |nt %d\n"|...,(int|
|00003d60| 29 67 61 6d 6d 61 2d 3e | 67 56 65 72 73 69 6f 6e |)gamma->|gVersion|
|00003d70| 2c 28 69 6e 74 29 67 61 | 6d 6d 61 2d 3e 67 54 79 |,(int)ga|mma->gTy|
|00003d80| 70 65 2c 28 69 6e 74 29 | 67 61 6d 6d 61 2d 3e 67 |pe,(int)|gamma->g|
|00003d90| 46 6f 72 6d 75 6c 61 53 | 69 7a 65 2c 28 69 6e 74 |FormulaS|ize,(int|
|00003da0| 29 67 61 6d 6d 61 2d 3e | 67 43 68 61 6e 43 6e 74 |)gamma->|gChanCnt|
|00003db0| 29 3b 0d 09 09 69 66 28 | 70 72 69 6e 74 47 61 6d |);...if(|printGam|
|00003dc0| 6d 61 54 61 62 6c 65 20 | 26 26 20 67 61 6d 6d 61 |maTable |&& gamma|
|00003dd0| 2d 3e 67 56 65 72 73 69 | 6f 6e 3d 3d 30 20 26 26 |->gVersi|on==0 &&|
|00003de0| 20 67 61 6d 6d 61 2d 3e | 67 54 79 70 65 3d 3d 30 | gamma->|gType==0|
|00003df0| 29 7b 0d 09 09 09 47 65 | 74 46 4e 75 6d 28 22 5c |){....Ge|tFNum("\|
|00003e00| 70 4d 6f 6e 61 63 6f 22 | 2c 26 6e 65 77 46 6f 6e |pMonaco"|,&newFon|
|00003e10| 74 4e 75 6d 62 65 72 29 | 3b 0d 09 09 09 47 65 74 |tNumber)|;....Get|
|00003e20| 50 6f 72 74 28 26 77 69 | 6e 64 6f 77 29 3b 0d 09 |Port(&wi|ndow);..|
|00003e30| 09 09 66 6f 6e 74 4e 75 | 6d 62 65 72 3d 77 69 6e |..fontNu|mber=win|
|00003e40| 64 6f 77 2d 3e 74 78 46 | 6f 6e 74 3b 0d 09 09 09 |dow->txF|ont;....|
|00003e50| 74 65 78 74 53 69 7a 65 | 3d 77 69 6e 64 6f 77 2d |textSize|=window-|
|00003e60| 3e 74 78 53 69 7a 65 3b | 0d 09 09 09 54 65 78 74 |>txSize;|....Text|
|00003e70| 46 6f 6e 74 28 6e 65 77 | 46 6f 6e 74 4e 75 6d 62 |Font(new|FontNumb|
|00003e80| 65 72 29 3b 0d 09 09 09 | 54 65 78 74 53 69 7a 65 |er);....|TextSize|
|00003e90| 28 39 29 3b 0d 09 09 09 | 62 79 74 65 3d 28 75 6e |(9);....|byte=(un|
|00003ea0| 73 69 67 6e 65 64 20 63 | 68 61 72 20 2a 29 67 61 |signed c|har *)ga|
|00003eb0| 6d 6d 61 2d 3e 67 46 6f | 72 6d 75 6c 61 44 61 74 |mma->gFo|rmulaDat|
|00003ec0| 61 2b 67 61 6d 6d 61 2d | 3e 67 46 6f 72 6d 75 6c |a+gamma-|>gFormul|
|00003ed0| 61 53 69 7a 65 3b 0d 09 | 09 09 77 6f 72 64 3d 28 |aSize;..|..word=(|
|00003ee0| 75 6e 73 69 67 6e 65 64 | 20 73 68 6f 72 74 20 2a |unsigned| short *|
|00003ef0| 29 62 79 74 65 3b 0d 09 | 09 09 44 72 61 77 50 72 |)byte;..|..DrawPr|
|00003f00| 69 6e 74 66 28 22 47 61 | 6d 6d 61 20 54 61 62 6c |intf("Ga|mma Tabl|
|00003f10| 65 3a 5c 6e 22 29 3b 0d | 09 09 09 66 6f 72 28 69 |e:\n");.|...for(i|
|00003f20| 3d 30 3b 69 3c 67 61 6d | 6d 61 2d 3e 67 44 61 74 |=0;i<gam|ma->gDat|
|00003f30| 61 43 6e 74 3b 69 2b 3d | 36 34 29 20 7b 0d 09 09 |aCnt;i+=|64) {...|
|00003f40| 09 09 44 72 61 77 50 72 | 69 6e 74 66 28 22 25 33 |..DrawPr|intf("%3|
|00003f50| 64 3a 20 22 2c 69 29 3b | 0d 09 09 09 09 69 66 28 |d: ",i);|.....if(|
|00003f60| 67 61 6d 6d 61 2d 3e 67 | 44 61 74 61 57 69 64 74 |gamma->g|DataWidt|
|00003f70| 68 3c 3d 38 29 0d 09 09 | 09 09 09 66 6f 72 28 6a |h<=8)...|...for(j|
|00003f80| 3d 30 3b 6a 3c 36 34 3b | 6a 2b 2b 29 20 44 72 61 |=0;j<64;|j++) Dra|
|00003f90| 77 50 72 69 6e 74 66 28 | 22 20 25 33 75 22 2c 62 |wPrintf(|" %3u",b|
|00003fa0| 79 74 65 5b 69 2b 6a 5d | 29 3b 0d 09 09 09 09 65 |yte[i+j]|);.....e|
|00003fb0| 6c 73 65 0d 09 09 09 09 | 09 66 6f 72 28 6a 3d 30 |lse.....|.for(j=0|
|00003fc0| 3b 6a 3c 36 34 3b 6a 2b | 2b 29 20 44 72 61 77 50 |;j<64;j+|+) DrawP|
|00003fd0| 72 69 6e 74 66 28 22 20 | 25 33 75 22 2c 77 6f 72 |rintf(" |%3u",wor|
|00003fe0| 64 5b 69 2b 6a 5d 29 3b | 0d 09 09 09 09 44 72 61 |d[i+j]);|.....Dra|
|00003ff0| 77 50 72 69 6e 74 66 28 | 22 5c 6e 22 29 3b 0d 09 |wPrintf(|"\n");..|
|00004000| 09 09 7d 0d 09 09 09 54 | 65 78 74 46 6f 6e 74 28 |..}....T|extFont(|
|00004010| 66 6f 6e 74 4e 75 6d 62 | 65 72 29 3b 0d 09 09 09 |fontNumb|er);....|
|00004020| 54 65 78 74 53 69 7a 65 | 28 74 65 78 74 53 69 7a |TextSize|(textSiz|
|00004030| 65 29 3b 0d 09 09 7d 0d | 09 7d 0d 7d 0d 0d 73 74 |e);...}.|.}.}..st|
|00004040| 61 74 69 63 20 76 6f 69 | 64 20 45 72 72 6f 72 28 |atic voi|d Error(|
|00004050| 69 6e 74 20 65 72 72 6f | 72 29 0d 7b 0d 09 73 77 |int erro|r).{..sw|
|00004060| 69 74 63 68 28 65 72 72 | 6f 72 29 7b 0d 09 63 61 |itch(err|or){..ca|
|00004070| 73 65 20 2d 31 37 3a 0d | 09 63 61 73 65 20 2d 31 |se -17:.|.case -1|
|00004080| 38 3a 0d 09 09 44 72 61 | 77 50 72 69 6e 74 66 28 |8:...Dra|wPrintf(|
|00004090| 22 6e 2f 61 5c 6e 22 29 | 3b 0d 09 09 62 72 65 61 |"n/a\n")|;...brea|
|000040a0| 6b 3b 0d 09 64 65 66 61 | 75 6c 74 3a 0d 09 09 44 |k;..defa|ult:...D|
|000040b0| 72 61 77 50 72 69 6e 74 | 66 28 22 65 72 72 6f 72 |rawPrint|f("error|
|000040c0| 20 25 64 5c 6e 22 2c 65 | 72 72 6f 72 29 3b 0d 09 | %d\n",e|rror);..|
|000040d0| 7d 0d 7d 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |}.}.....|........|
|000040e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000040f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004100| 00 00 01 00 00 00 02 14 | 00 00 01 14 00 00 00 7a |........|.......z|
|00004110| 62 79 20 44 65 6e 69 73 | 20 47 2e 20 50 65 6c 6c |by Denis| G. Pell|
|00004120| 69 0d 28 4f 72 69 67 69 | 6e 61 6c 6c 79 20 22 54 |i.(Origi|nally "T|
|00004130| 0d 54 65 73 74 47 44 56 | 69 64 65 6f 2e 63 02 00 |.TestGDV|ideo.c..|
|00004140| 00 00 50 61 72 74 53 49 | 54 21 00 00 00 00 00 00 |..PartSI|T!......|
|00004150| 00 00 50 61 72 74 53 49 | 54 21 00 00 00 00 00 00 |..PartSI|T!......|
|00004160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004170| 00 00 ab bf ee 31 00 00 | 00 00 00 00 02 8e 6e 20 |.....1..|......n |
|00004180| 47 44 56 69 64 65 6f 2e | 63 0d 54 68 65 20 63 61 |GDVideo.|c.The ca|
|00004190| 6c 6c 73 20 61 72 65 20 | 64 6f 63 75 6d 65 6e 74 |lls are |document|
|000041a0| 65 64 20 69 6e 20 44 65 | 73 69 67 6e 69 6e 67 20 |ed in De|signing |
|000041b0| 43 61 72 64 73 20 61 6e | 64 20 44 72 69 76 65 72 |Cards an|d Driver|
|000041c0| 73 2c 20 32 6e 64 20 45 | 64 69 74 69 6f 6e 2c 0d |s, 2nd E|dition,.|
|000041d0| 43 68 61 70 74 65 72 20 | 39 2e 0d 0d 48 49 53 54 |Chapter |9...HIST|
|000041e0| 4f 52 59 3a 0d 38 2f 31 | 31 2f 38 39 09 64 67 70 |ORY:.8/1|1/89.dgp|
|000041f0| 09 77 72 6f 74 65 20 69 | 74 0d 33 2f 32 33 2f 39 |.wrote i|t.3/23/9|
|00004200| 00 00 00 0a 00 00 30 d5 | 01 67 00 00 00 00 00 00 |......0.|.g......|
|00004210| 00 0a 00 00 25 38 ff ff | 00 00 00 00 00 00 00 a0 |....%8..|........|
|00004220| 00 07 00 14 00 00 1f 79 | 00 d0 00 30 a4 3c 00 00 |.......y|...0.<..|
|00004230| 05 65 72 72 6f 72 00 18 | 00 00 1f a2 00 d1 00 30 |.error..|.......0|
|00004240| a4 2c 00 00 09 70 69 78 | 65 6c 53 69 7a 65 00 14 |.,...pix|elSize..|
|00004250| 00 00 1f 79 00 d0 00 30 | a4 10 00 00 05 70 61 67 |...y...0|.....pag|
|00004260| 65 73 00 10 00 00 1f 79 | 00 d0 00 30 a4 00 10 02 |es.....y|...0....|
|00004270| 01 69 00 26 00 00 26 37 | 01 08 00 30 a2 68 80 00 |.i.&..&7|...0.h..|
|00004280| 00 2a fe d2 01 0a ff ec | 94 20 00 00 00 00 00 00 |.*......|. ......|
|00004290| 07 2a 67 61 6d 6d 61 20 | 00 14 00 00 26 37 01 08 |.*gamma |....&7..|
|000042a0| 00 30 a3 a4 00 00 05 67 | 61 6d 6d 61 00 14 00 00 |.0.....g|amma....|
|000042b0| 26 e5 01 0f 00 30 a3 20 | 00 00 05 65 72 72 6f 72 |&....0. |...error|
|000042c0| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|000042d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000042e0| 00 00 00 00 00 00 00 03 | 00 04 00 50 00 09 01 80 |........|...P....|
|000042f0| 02 68 00 50 00 09 01 80 | 02 68 ab b9 e8 6a 00 00 |.h.P....|.h...j..|
|00004300| 10 27 00 00 10 2e 00 00 | 14 33 00 00 00 00 00 04 |.'......|.3......|
|00004310| 00 01 00 01 00 00 01 00 | 00 00 02 14 00 00 01 14 |........|........|
|00004320| 00 00 00 7a 00 50 3c 38 | 2a 9a 00 00 00 1c 00 7a |...z.P<8|*......z|
|00004330| 00 03 42 4b 50 54 00 01 | 00 22 44 54 56 55 00 00 |..BKPT..|."DTVU..|
|00004340| 00 3a 4d 50 53 52 00 00 | 00 46 4d 57 42 42 00 00 |.:MPSR..|.FMWBB..|
|00004350| 00 52 1e ce ff ff 00 00 | 00 00 00 00 00 00 59 73 |.R......|......Ys|
|00004360| ff ff 00 00 00 0e 00 00 | 00 00 4b 5d ff ff 00 00 |........|..K]....|
|00004370| 00 1c 00 00 00 00 03 ed | ff ff 00 00 00 c0 00 00 |........|........|
|00004380| 00 00 03 f0 ff ff 00 00 | 01 0c 00 00 00 00 00 00 |........|........|
|00004390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000043a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000043b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000043c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000043d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000043e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000043f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+